Project

General

Profile

Bug #1768 ยป 0046-savegame-Do-not-nullify-goto_tile-from-ACTIVITY_GOTO.patch

Marko Lindqvist, 11/24/2025 02:07 AM

View differences:

server/savegame/savegame2.c
}
}
} else {
punit->goto_tile = NULL;
/* Never nullify goto_tile for a unit that is in active goto. */
if (punit->activity != ACTIVITY_GOTO) {
punit->goto_tile = NULL;
}
punit->has_orders = FALSE;
punit->orders.list = NULL;
punit->orders.length = 0;
server/savegame/savegame3.c
int j;
punit->has_orders = FALSE;
punit->goto_tile = NULL;
/* Never nullify goto_tile for a unit that is in active goto. */
if (punit->activity != ACTIVITY_GOTO) {
punit->goto_tile = NULL;
}
punit->orders.list = NULL;
punit->orders.length = 0;
    (1-1/1)