diff --git a/Strategic/Map Screen Interface Map Inventory.cpp b/Strategic/Map Screen Interface Map Inventory.cpp index 55ae2213..3cd0599d 100644 --- a/Strategic/Map Screen Interface Map Inventory.cpp +++ b/Strategic/Map Screen Interface Map Inventory.cpp @@ -2672,17 +2672,17 @@ INT32 SellItem( OBJECTTYPE& object, BOOLEAN useModifier ) { //we are selling ammo UINT16 magSize = Magazine[ Item[ usItemType ].ubClassIndex ].ubMagSize; - for (INT8 bLoop = 0; bLoop < object.ubNumberOfObjects; bLoop++) + for (UINT8 ubLoop = 0; ubLoop < object.ubNumberOfObjects; ubLoop++) { - iPrice += (INT32)( itemPrice * (float) object[bLoop]->data.ubShotsLeft / magSize ); + iPrice += (INT32)( itemPrice * (float) object[ubLoop]->data.ubShotsLeft / magSize ); } } //CHRISL: If we're dealing with money, we want to use the money's amount and just return that value with no modification else if(Item[usItemType].usItemClass == IC_MONEY) { - for (INT8 bLoop = 0; bLoop < object.ubNumberOfObjects; bLoop++) + for (UINT8 ubLoop = 0; ubLoop < object.ubNumberOfObjects; ubLoop++) { - iPrice += (INT32)(object[bLoop]->data.money.uiMoneyAmount); + iPrice += (INT32)(object[ubLoop]->data.money.uiMoneyAmount); } return iPrice; } @@ -2690,11 +2690,11 @@ INT32 SellItem( OBJECTTYPE& object, BOOLEAN useModifier ) { //CHRISL: If we're selling an LBE Item, we need to verify if it's an LBENODE, first. If it is, we need to sell // everything stored in the LBENODE before we sell teh LBE Item itself. - for(INT8 bLoop = 0; bLoop < object.ubNumberOfObjects; bLoop++) + for(UINT8 ubLoop = 0; ubLoop < object.ubNumberOfObjects; ubLoop++) { - if(object.IsActiveLBE(bLoop) == true) + if(object.IsActiveLBE(ubLoop) == true) { - LBENODE* pLBE = object.GetLBEPointer(bLoop); + LBENODE* pLBE = object.GetLBEPointer(ubLoop); if(pLBE) { for(unsigned int x = 0; x < pLBE->inv.size(); x++) @@ -2706,8 +2706,8 @@ INT32 SellItem( OBJECTTYPE& object, BOOLEAN useModifier ) } } } - iPrice += ( itemPrice * object[bLoop]->data.objectStatus / 100 ); - for (attachmentList::iterator iter = object[bLoop]->attachments.begin(); iter != object[bLoop]->attachments.end(); ++iter) { + iPrice += ( itemPrice * object[ubLoop]->data.objectStatus / 100 ); + for (attachmentList::iterator iter = object[ubLoop]->attachments.begin(); iter != object[ubLoop]->attachments.end(); ++iter) { if(iter->exists()) iPrice += SellItem(*iter, FALSE); } @@ -2716,10 +2716,10 @@ INT32 SellItem( OBJECTTYPE& object, BOOLEAN useModifier ) else { //we are selling a gun or something - it could be stacked or single, and if single it could have attachments - for (INT8 bLoop = 0; bLoop < object.ubNumberOfObjects; bLoop++) + for (UINT8 ubLoop = 0; ubLoop < object.ubNumberOfObjects; ubLoop++) { - iPrice += ( itemPrice * object[bLoop]->data.objectStatus / 100 ); - for (attachmentList::iterator iter = object[bLoop]->attachments.begin(); iter != object[bLoop]->attachments.end(); ++iter) { + iPrice += ( itemPrice * object[ubLoop]->data.objectStatus / 100 ); + for (attachmentList::iterator iter = object[ubLoop]->attachments.begin(); iter != object[ubLoop]->attachments.end(); ++iter) { if(iter->exists()) iPrice += SellItem(*iter, FALSE); }