Project

General

Profile

Feature #1750 ยป 0038-sanitycheck.c-Check-that-goto_tile-is-set-for-ACTIVI.patch

Marko Lindqvist, 11/19/2025 03:03 AM

View differences:

server/sanitycheck.c
SANITY_CHECK(punit->activity_target != NULL);
}
if (punit->activity == ACTIVITY_GOTO) {
/* ACTIVITY_GOTO requires goto_tile always to be set. */
SANITY_CHECK(punit->goto_tile != NULL);
}
pcity = tile_city(ptile);
if (pcity) {
SANITY_CHECK(pplayers_allied(city_owner(pcity), pplayer));
    (1-1/1)