From 141e2a69fabd740e008541dd0c8ba6b539636786 Mon Sep 17 00:00:00 2001 From: Dino Date: Fri, 16 Oct 2026 21:17:27 -0400 Subject: [PATCH] city_add_unit(): handle spec_type either nullptr or not RM #2334 --- server/unithand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/unithand.c b/server/unithand.c index 54a9f84217..f87ee0539b 100644 --- a/server/unithand.c +++ b/server/unithand.c @@ -4262,7 +4262,7 @@ static bool city_add_unit(struct player *pplayer, struct unit *punit, citizens_update(pcity, unit_nationality(punit)); - if (is_super_specialist(act_utype->spec_type)) { + if (act_utype->spec_type != nullptr) { Specialist_type_id sspec = specialist_index(act_utype->spec_type); fc_assert_ret_val(pcity->specialists[sspec] < MAX_CITY_SIZE, FALSE); -- 2.31.0