From 2935e342b787c62912fbbffe1a526b722b8b862b Mon Sep 17 00:00:00 2001 From: Hilde Iren Lagnason Bye Date: Sun, 7 Nov 2021 18:33:41 +0100 Subject: [PATCH] Check effect value known for the correct player. Make action_prob_pre_action_dice_roll() check if the dice roll odds are known for act_player. tgt_player is just the other party for local DiplRel requirements. Reported by Marko Lindquist See osdn #43169 --- common/actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/actions.c b/common/actions.c index 5fcf7212fb..43d6e8f44f 100644 --- a/common/actions.c +++ b/common/actions.c @@ -5466,7 +5466,7 @@ action_prob_pre_action_dice_roll(const struct player *act_player, const struct action *paction) { if (is_effect_val_known(EFT_ACTION_ODDS_PCT, act_player, - tgt_player, tgt_player, tgt_city, + act_player, tgt_player, tgt_city, NULL, NULL, act_unit, NULL, NULL)) { int unconverted = action_dice_roll_odds(act_player, act_unit, tgt_city, tgt_player, paction); -- 2.30.2