From 5815b01f6accba90a8ae68d43ddd5d68f98d118f Mon Sep 17 00:00:00 2001 From: ChrisL Date: Thu, 12 Mar 2009 18:16:26 +0000 Subject: [PATCH] Added a condition which should stop the blue asterisk from appearing on an item unless that item is of item class IC_LBEGEAR. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2619 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Item Types.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tactical/Item Types.cpp b/Tactical/Item Types.cpp index db1a9cc1..c8a28293 100644 --- a/Tactical/Item Types.cpp +++ b/Tactical/Item Types.cpp @@ -441,7 +441,9 @@ bool OBJECTTYPE::IsActiveLBE(unsigned int index) bool OBJECTTYPE::HasAnyActiveLBEs(SOLDIERTYPE * pSoldier, UINT8 iter) { - if (exists() == true) { + //CHRISL: Since only IC_LBEGEAR items can be classified as LBENODEs, only allow this to return true if the item we're + // working with is actually the right class of item. + if (exists() == true && Item[this->usItem].usItemClass == IC_LBEGEAR) { if(pSoldier != NULL){ for (int x = 0; x < ubNumberOfObjects; ++x) { if ((*this)[x]->data.lbe.bLBE == -1) {