Project

General

Profile

Actions

Bug #1768

open

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

Added by Marko Lindqvist about 20 hours ago. Updated about 4 hours ago.

Status:
In Review
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 (2 open1 closed)

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

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

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

Actions
Actions #2

Updated by Marko Lindqvist about 20 hours ago

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

Updated by Marko Lindqvist about 19 hours ago

Actions #4

Updated by Marko Lindqvist about 16 hours ago

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

Updated by David Fernandez about 4 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

Also available in: Atom PDF