From b89e65c2faee5e24dc3df3693d40b686b9949e3f Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Sun, 4 Jul 2021 13:01:04 +0200 Subject: [PATCH] See osdn #42597 --- server/unithand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/unithand.c b/server/unithand.c index 85a44b7f56..6e220ec364 100644 --- a/server/unithand.c +++ b/server/unithand.c @@ -1021,7 +1021,8 @@ static struct player *need_war_player_hlp(const struct unit *actor, } /* Look for DiplRelTileOther war requirements from the action enablers. */ - if (need_war_enabler(unit_type_get(actor), paction, + if (target_tile + && need_war_enabler(unit_type_get(actor), paction, actor_player, tile_owner(target_tile), utype_can_act_if_tgt_diplrel_tile_other)) { return tile_owner(target_tile); -- 2.30.2