Project

General

Profile

Actions

Bug #1768

closed

savegame: In lack of orders, goto_tile nullified even if unit has ACTIVITY_GOTO

Added by Marko Lindqvist 21 days ago. Updated 15 days ago.

Status:
Closed
Priority:
Normal
Category:
Server
Target version:
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


Related issues 3 (0 open3 closed)

Related to Bug #1741: Server crash due to animal kingdom aiClosedMarko Lindqvist11/16/2025

Actions
Blocks Tasks #1696: Release 3.1.6ClosedMarko Lindqvist10/02/2025

Actions
Blocks Feature #1769: savegame: version-gate log message about ACTIVITY_GOTO vs goto_tile inconsistencyClosedMarko Lindqvist11/24/2025

Actions
Actions #1

Updated by Marko Lindqvist 21 days ago

Actions #2

Updated by Marko Lindqvist 21 days ago

  • Related to Bug #1741: Server crash due to animal kingdom ai added
Actions #3

Updated by Marko Lindqvist 21 days ago

Actions #4

Updated by Marko Lindqvist 21 days ago

  • Blocks Feature #1769: savegame: version-gate log message about ACTIVITY_GOTO vs goto_tile inconsistency added
Actions #5

Updated by David Fernandez 21 days 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 #6

Updated by Marko Lindqvist 15 days ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF