@@ -312,7 +312,7 @@ bool CTFInventoryManager::EquipItemInLoadout( int iClass, int iSlot, itemid_t iI
312312#ifdef BDSBASE
313313 CEconItemView* pItem = m_LocalInventory.GetInventoryItemByItemID (iItemID);
314314
315- if (iItemID < 100000 )
315+ if (iItemID < TF_CUSTOM_ITEMS_ID_LIMIT )
316316 {
317317 int count = TFInventoryManager ()->GetSoloItemCount ();
318318 for (int i = 0 ; i < count; i++)
@@ -1170,7 +1170,7 @@ void CTFPlayerInventory::EquipLocal(uint64 ulItemID, equipped_class_t unClass, e
11701170#ifdef BDSBASE
11711171 itemid_t ulPreviousItem = m_LoadoutItems[unClass][unSlot];
11721172
1173- if (ulPreviousItem != 0 && ulPreviousItem < 100000 )
1173+ if (ulPreviousItem != 0 && ulPreviousItem < TF_CUSTOM_ITEMS_ID_LIMIT )
11741174 {
11751175 int count = TFInventoryManager ()->GetSoloItemCount ();
11761176 for (int i = 0 ; i < count; i++)
@@ -1201,7 +1201,7 @@ void CTFPlayerInventory::EquipLocal(uint64 ulItemID, equipped_class_t unClass, e
12011201
12021202 // Equip the new item and add it to our loadout.
12031203#ifdef BDSBASE
1204- if (ulItemID < 100000 )
1204+ if (ulItemID < TF_CUSTOM_ITEMS_ID_LIMIT )
12051205 {
12061206 int count = TFInventoryManager ()->GetSoloItemCount ();
12071207 CEconItemView* pItem = NULL ;
@@ -1709,7 +1709,7 @@ CEconItemView* CTFPlayerInventory::GetDefaultItemInLoadout(int iClass, int iSlot
17091709 return pItem;
17101710 }
17111711
1712- if (m_LoadoutItems[iClass][iSlot] < 100000 )
1712+ if (m_LoadoutItems[iClass][iSlot] < TF_CUSTOM_ITEMS_ID_LIMIT )
17131713 {
17141714 int count = TFInventoryManager ()->GetSoloItemCount ();
17151715
0 commit comments