From 511bce943d08b76b7c59f12b2016c09ea326e357 Mon Sep 17 00:00:00 2001 From: Sveinung Kvilhaugsvik Date: Fri, 12 Mar 2021 15:00:15 +0100 Subject: [PATCH] get_tile_bonus(): set other_player to tile owner. This allows the effect using it to specify local DiplRel requirements. See osdn #41747 --- common/effects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/effects.c b/common/effects.c index 88876f2321..a2ee59d84c 100644 --- a/common/effects.c +++ b/common/effects.c @@ -939,7 +939,7 @@ int get_tile_bonus(const struct tile *ptile, const struct unit *punit, return get_target_bonus_effects(NULL, pplayer, - NULL, + tile_owner(ptile), tile_city(ptile), NULL, ptile, -- 2.20.1