From ab47754537e2441b0b866c212e2b263c60645dbe Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 1 Oct 2023 09:54:34 +0300 Subject: [PATCH 50/50] Fix player_loot_player() dead "conqsize" initialization See osdn #48776 Signed-off-by: Marko Lindqvist --- server/plrhand.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/plrhand.c b/server/plrhand.c index 4f9f803dd9..9989e590b0 100644 --- a/server/plrhand.c +++ b/server/plrhand.c @@ -450,16 +450,18 @@ void player_loot_player(struct player *pvictor, struct player *pvictim) } } - { /* Try to submit some cities */ + { + /* Try to submit some cities */ int vcsize = city_list_size(pvictim->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 */ conqsize = fc_rand(fc_rand(evcsize)); -- 2.40.1