From f5162b31d20d783f0a4c9d423bad1957a4fb8cd1 Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Tue, 18 Aug 2020 08:28:25 +0000 Subject: [PATCH] Fixed minor error in previous commit. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8890 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- TacticalAI/Attacks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TacticalAI/Attacks.cpp b/TacticalAI/Attacks.cpp index 33198eb38..248b86033 100644 --- a/TacticalAI/Attacks.cpp +++ b/TacticalAI/Attacks.cpp @@ -209,7 +209,7 @@ void CalcBestShot(SOLDIERTYPE *pSoldier, ATTACKTYPE *pBestShot) pBestShot->ubOpponent = NOBODY; pBestShot->ubFriendlyFireChance = 0; - ubBestChanceToHit = ubBestAimTime = ubChanceToHit = ubBestChanceToGetThrough = ubBestFriendlyFireChance = ubChanceToReallyHit = 0; + sBestChanceToHit = sBestAimTime = sChanceToHit = ubBestChanceToGetThrough = ubBestFriendlyFireChance = ubChanceToReallyHit = 0; // sevenfm: set attacking hand and target pSoldier->ubAttackingHand = HANDPOS;