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
This commit is contained in:
ChrisL
2009-03-12 18:16:26 +00:00
parent 6be3de2149
commit 5815b01f6a
+3 -1
View File
@@ -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) {