The International Simutrans Forum

 

Author Topic: Fix for crash when loading a save after a desync  (Read 424 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 250
Fix for crash when loading a save after a desync
« on: April 23, 2020, 06:54:45 AM »
Via this Extended bug report:

How to reproduce?
1. Connect to any server
2. Enforce a desync, e.g. by saving the map
3. Load any local savegame e.g. the "online" map you might just have saved

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20774
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Fix for crash when loading a save after a desync
« Reply #1 on: April 23, 2020, 10:07:09 AM »
I should note that the problem was actually quite different in Extended, relating to an Extended only feature of stop transfer queues and the patch affects code commented out in Extended.

However, that is not to say that this is not a real bug in Standard successfully fixed by this patch.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10638
  • Languages: De,EN,JP
Re: Fix for crash when loading a save after a desync
« Reply #2 on: April 23, 2020, 12:54:39 PM »
Not entirely sure, how this crashed. Anyway, it does not hurt to be save. By the way, lengthof(date)-1 should be also used in the last change.

In in r9039, thnaks.