From 1d8136aa061b152917c09f1abb991397e8400f1a Mon Sep 17 00:00:00 2001 From: silversurfer Date: Thu, 9 Jul 2015 16:19:47 +0000 Subject: [PATCH] Fix: New IMP gear selection method didn't include the Sidearm category so mercs could be left without a gun if their trait selection didn't include one. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7908 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Laptop/IMP Gear.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Laptop/IMP Gear.cpp b/Laptop/IMP Gear.cpp index ee469c2c..39b00c84 100644 --- a/Laptop/IMP Gear.cpp +++ b/Laptop/IMP Gear.cpp @@ -601,6 +601,9 @@ void CalculatePossibleItems() AddItemCategoryToPossibleGear(i); } + // always add sidearms + AddItemCategoryToPossibleGear(IMP_SIDEARM); + //loop through all the buttons and reset them for ( UINT8 uiCnt = 0; uiCnt< (gGameOptions.fNewTraitSystem ? IMP_SKILL_TRAITS_NEW_MAJOR_NONE : IMP_SKILL_TRAITS__NONE); ++uiCnt ) {