Project

General

Profile

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

main, S3_3, S3_2 - Marko Lindqvist, 11/26/2025 05:09 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(3020200, "Unit %d on goto without goto_tile. Aborting goto.",
punit->id);
punit->activity = ACTIVITY_IDLE;
}
(1-1/2)