Actions
Bug #1768
opensavegame: In lack of orders, goto_tile nullified even if unit has ACTIVITY_GOTO
Start date:
11/24/2025
Due date:
% Done:
0%
Estimated time:
Description
Split from #1741 reported by David Fernandez, issue reproducible with the latter savegame attached there.
Even when goto_tile is first correctly loaded from the savegame, it might get nullified when loading orders if unit does not have any. This happens even if the unit has ACTIVITY_GOTO. Unit having ACTIVITY_GOTO without valid goto_tile is an illegal situation, leading to a crash later.
Files
Updated by Marko Lindqvist about 21 hours ago
- File 0046-savegame-Do-not-nullify-goto_tile-from-ACTIVITY_GOTO.patch 0046-savegame-Do-not-nullify-goto_tile-from-ACTIVITY_GOTO.patch added
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
Updated by Marko Lindqvist about 21 hours ago
- Related to Bug #1741: Server crash due to animal kingdom ai added
Updated by Marko Lindqvist about 20 hours ago
- Blocks Tasks #1696: Release 3.1.6 added
Updated by Marko Lindqvist about 17 hours ago
- Blocks Feature #1769: savegame: version-gate log message about ACTIVITY_GOTO vs goto_tile inconsistency added
Updated by David Fernandez about 5 hours ago
Thank you, this patch fixes it for me. I also installed the patch from Bug #1766 just in case.
I have been able to continue my game without further crashes and the savegames load without sanity errors.
Good job.
Actions