From 1dc958c7f9fa2ff27be416b5a91de4ee8f59edb1 Mon Sep 17 00:00:00 2001 From: Wanne Date: Tue, 10 Apr 2012 12:24:22 +0000 Subject: [PATCH] - Bugfix: Fix Inventory AP costs when soldier has negative APs (by JMich) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5174 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Interface Panels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tactical/Interface Panels.cpp b/Tactical/Interface Panels.cpp index 2a0f7dbd..88834777 100644 --- a/Tactical/Interface Panels.cpp +++ b/Tactical/Interface Panels.cpp @@ -3703,7 +3703,7 @@ void SMInvClickCallback( MOUSE_REGION * pRegion, INT32 iReason ) //Jenilee: determine the cost of moving this item around in our inventory usCostToMoveItem = GetInvMovementCost(gpItemPointer->usItem, uiLastHandPos, uiHandPos); - if (gpSMCurrentMerc->bActionPoints >= usCostToMoveItem) + if ( ( usCostToMoveItem == 0 ) || ( gpSMCurrentMerc->bActionPoints >= usCostToMoveItem ) ) { fOKToGo = TRUE; uiLastHandPos = uiHandPos;