From f958873db5ccdafb0c93a1ece1d61b14f8e35f46 Mon Sep 17 00:00:00 2001 From: Dino Date: Mon, 20 Jul 2026 15:28:06 -0400 Subject: [PATCH] city_add_unit(): make new citizens do something useful RM #1618 --- server/unithand.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/unithand.c b/server/unithand.c index 48a779dc16..01cc7f6f6f 100644 --- a/server/unithand.c +++ b/server/unithand.c @@ -4226,11 +4226,11 @@ static bool city_add_unit(struct player *pplayer, struct unit *punit, fc_assert_ret_val(amount > 0, FALSE); city_size_add(pcity, amount); - /* Make the new people something, otherwise city fails the checks */ - pcity->specialists[DEFAULT_SPECIALIST] += amount; + citizens_update(pcity, unit_nationality(punit)); - /* Refresh the city data. */ - city_refresh(pcity); + + /* Make the new people something, otherwise city fails the checks */ + auto_arrange_workers(pcity); /* this calls city_refresh(pcity) */ /* Notify the unit owner that the unit successfully joined the city. */ notify_player(pplayer, city_tile(pcity), E_CITY_BUILD, ftc_server, -- 2.31.0