Project

General

Profile

Feature #1769 » 0007-savegame3.c-version-gate-goto_tile-sanity-logging.patch

S3_1 - Marko Lindqvist, 11/26/2025 05:10 AM

View differences:

server/savegame/savegame3.c
if (punit->activity == ACTIVITY_GOTO) {
/* goto_tile should never be NULL with ACTIVITY_GOTO */
log_sg("Unit %d on goto without goto_tile. Aborting goto.",
punit->id);
sg_regr(3010600, "Unit %d on goto without goto_tile. Aborting goto.",
punit->id);
punit->activity = ACTIVITY_IDLE;
}
(2-2/2)