Bug #1768 ยป 0046-savegame-Do-not-nullify-goto_tile-from-ACTIVITY_GOTO.patch
| 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;
|
||