From 200899593ec7b7a2c820d8d5a619981d0b36febd Mon Sep 17 00:00:00 2001 From: Flugente Date: Thu, 15 Dec 2016 21:05:23 +0000 Subject: [PATCH] Fix: New IMP gear selection method: If identical items are selected in several slots, only those of one slot are given to the IMP git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8348 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Laptop/IMP Gear.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Laptop/IMP Gear.cpp b/Laptop/IMP Gear.cpp index 6a110bca..bf65254c 100644 --- a/Laptop/IMP Gear.cpp +++ b/Laptop/IMP Gear.cpp @@ -738,7 +738,7 @@ void StoreSelectedIMPGear() if ( usItem ) { // add item (make sure it is at least 1) - gIMPGearSelectedItems[usItem] = max(1, gIMPGearCount[i]); + gIMPGearSelectedItems[usItem] = max( 1, gIMPGearSelectedItems[usItem] + gIMPGearCount[i] ); } } }