The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ceeac on April 23, 2020, 06:54:45 AM

Title: Fix for crash when loading a save after a desync
Post by: ceeac on April 23, 2020, 06:54:45 AM
Via this Extended bug report (https://forum.simutrans.com/index.php/topic,19770.msg186125.html#msg186125):

Quote from: Freahk on April 22, 2020, 12:04:26 PMHow 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
Title: Re: Fix for crash when loading a save after a desync
Post by: jamespetts 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.
Title: Re: Fix for crash when loading a save after a desync
Post by: prissi 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.