Feature #1750 ยป 0038-sanitycheck.c-Check-that-goto_tile-is-set-for-ACTIVI.patch
| 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));
|
||