From 5feeb960bb78d7fed9108fc65c74bced1b28ad97 Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Wed, 24 Feb 2021 12:28:55 +0100 Subject: [PATCH] Fix city for "City Gone" action auto performer. The action auto performer system will set target city to the city at the unit's current tile if not specified. Set target city to the (potential) city at the target tile. See osdn #41825 --- server/citytools.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/citytools.c b/server/citytools.c index 10b6bdba02..47c0477448 100644 --- a/server/citytools.c +++ b/server/citytools.c @@ -1687,7 +1687,8 @@ void remove_city(struct city *pcity) } if (action_auto_perf_unit_do(AAPC_CITY_GONE, punit, tile_owner(tile1), NULL, NULL, - tile1, NULL, ptrans, NULL) != NULL) { + tile1, tile_city(tile1), ptrans, + NULL) != NULL) { moved = TRUE; } if (moved) { -- 2.20.1