From c390624ad01fd40a21264de62e4da0970033cf16 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 16 Apr 2022 04:23:02 +0300 Subject: [PATCH 54/54] city_desirability(): Remove unnecessary advisor data fetching See osdn #44090 Signed-off-by: Marko Lindqvist --- ai/default/daisettler.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ai/default/daisettler.c b/ai/default/daisettler.c index 2e088a86c2..722c7b93fc 100644 --- a/ai/default/daisettler.c +++ b/ai/default/daisettler.c @@ -703,12 +703,10 @@ struct cityresult *city_desirability(struct ai_type *ait, struct player *pplayer struct unit *punit, struct tile *ptile) { struct city *pcity = tile_city(ptile); - struct adv_data *ai = adv_data_get(pplayer, NULL); struct cityresult *cr = NULL; fc_assert_ret_val(punit, NULL); fc_assert_ret_val(pplayer, NULL); - fc_assert_ret_val(ai, NULL); if (!city_can_be_built_here(ptile, punit) || (has_handicap(pplayer, H_MAP) -- 2.35.1