diff --git a/Source/player.cpp b/Source/player.cpp index 51013a015..af18d53af 100644 --- a/Source/player.cpp +++ b/Source/player.cpp @@ -972,8 +972,9 @@ void DamageArmor(Player &player, int numDurLost) if (armor.isEmpty() && helmet.isEmpty()) return; + const bool coin = FlipCoin(3); const bool targetHelmet = armor.isEmpty() ? true : helmet.isEmpty() ? false - : FlipCoin(3); + : coin; int slot = targetHelmet ? INVLOC_HEAD : INVLOC_CHEST; Item &item = player.InvBody[slot];