From 8b6a8cfe264f4fa51fd206f8161b2188bafd99f4 Mon Sep 17 00:00:00 2001 From: Flugente Date: Tue, 20 Aug 2013 22:06:28 +0000 Subject: [PATCH] Fix: weapon mode wasn't changed back after checking for grenades (by Kriplo) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6299 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- TacticalAI/Attacks.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TacticalAI/Attacks.cpp b/TacticalAI/Attacks.cpp index fd31431a..1856f80c 100644 --- a/TacticalAI/Attacks.cpp +++ b/TacticalAI/Attacks.cpp @@ -2305,9 +2305,10 @@ void CheckIfTossPossible(SOLDIERTYPE *pSoldier, ATTACKTYPE *pBestThrow) else { // no rocket launcher or attached GL, consider grenades - pSoldier->bWeaponMode = bOldWeaponMode; pBestThrow->bWeaponIn = FindThrowableGrenade( pSoldier ); } + + pSoldier->bWeaponMode = bOldWeaponMode; } else {