diff --git a/Laptop/BobbyRGuns.cpp b/Laptop/BobbyRGuns.cpp index d4782e06..42dee5b7 100644 --- a/Laptop/BobbyRGuns.cpp +++ b/Laptop/BobbyRGuns.cpp @@ -2187,6 +2187,8 @@ void SetFirstLastPagesForUsed(INT32 iFilter) } else { + bCntNumItems = FALSE; + // Get the weapon from the item usItemIndex = LaptopSaveInfo.BobbyRayUsedInventory[ i ].usItemIndex; @@ -3056,14 +3058,14 @@ void CalcFirstIndexForPage( STORE_INVENTORY *pInv, UINT32 uiItemClass ) //Get to the first index on the page for(i=gusFirstItemIndex; i<=gusLastItemIndex; i++) { - bCntItem = FALSE; - if (guiCurrentUsedFilterMode == -1) { bCntItem = TRUE; } else { + bCntItem = FALSE; + usItemIndex = pInv[ i ].usItemIndex; switch (guiCurrentUsedFilterMode) @@ -3128,8 +3130,6 @@ void CalcFirstIndexForPage( STORE_INVENTORY *pInv, UINT32 uiItemClass ) //Get to the first index on the page for(i=gusFirstItemIndex; i<=gusLastItemIndex; i++) { - bCntItem = FALSE; - if( Item[ pInv[ i ].usItemIndex ].usItemClass & uiItemClass ) { if (uiItemClass == IC_BOBBY_GUN) @@ -3140,6 +3140,8 @@ void CalcFirstIndexForPage( STORE_INVENTORY *pInv, UINT32 uiItemClass ) } else { + bCntItem = FALSE; + usItemIndex = LaptopSaveInfo.BobbyRayInventory[ i ].usItemIndex; if (Weapon[ Item[usItemIndex].ubClassIndex ].ubWeaponType == guiCurrentGunFilterMode)