From 869f30b611303e0eef388a153aa3c4fb97d4497f Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 1 Oct 2023 10:00:19 +0300 Subject: [PATCH 16/16] Fix wipe_unit_full() dead "conqsize" initialization See osdn #48776 Signed-off-by: Marko Lindqvist --- server/unittools.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server/unittools.c b/server/unittools.c index 84d5a69e08..10db2c4621 100644 --- a/server/unittools.c +++ b/server/unittools.c @@ -1906,17 +1906,19 @@ static void wipe_unit_full(struct unit *punit, bool transported, } } - { /* try to submit some cities */ + { + /* Try to submit some cities */ int vcsize = city_list_size(pplayer->cities); int evcsize = vcsize; - int conqsize = evcsize; + int conqsize; if (evcsize < 3) { evcsize = 0; } else { evcsize -=3; } - /* about a quarter on average with high numbers less probable */ + + /* About a quarter on average with high numbers less probable */ conqsize = fc_rand(fc_rand(evcsize)); log_debug("conqsize=%d", conqsize); -- 2.40.1