From 932bac24fdf4ea29d1d530f07fe9b123857335ee Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 7 Apr 2022 03:58:21 +0300 Subject: [PATCH 39/39] cityresult_fill(): Remove unnecessary ai data fetching See osdn #44089 Signed-off-by: Marko Lindqvist --- ai/default/daisettler.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ai/default/daisettler.c b/ai/default/daisettler.c index 1cc15700d2..2e088a86c2 100644 --- a/ai/default/daisettler.c +++ b/ai/default/daisettler.c @@ -284,10 +284,9 @@ static struct cityresult *cityresult_fill(struct ai_type *ait, bool virtual_city = FALSE; bool handicap = has_handicap(pplayer, H_MAP); struct adv_data *adv = adv_data_get(pplayer, NULL); - struct ai_plr *ai = dai_plr_data_get(ait, pplayer, NULL); struct cityresult *result; - fc_assert_ret_val(ai != NULL, NULL); + fc_assert_ret_val(adv != NULL, NULL); fc_assert_ret_val(center != NULL, NULL); pplayer->government = adv->goal.govt.gov; -- 2.35.1