fixed a typo

This commit is contained in:
Ovalord
2018-01-08 02:26:16 +01:00
parent 716612d5ef
commit 877950ec8f

View File

@@ -10939,7 +10939,7 @@ InventoryResult Player::CanStoreItem(uint8 bag, uint8 slot, ItemPosCountVec &des
// search free slot
uint8 searchSlotStart = INVENTORY_SLOT_ITEM_START;
// new bags can be directly equipped
if (!pItem && pProto->Bonding == ITEM_CLASS_CONTAINER && pProto->SubClass == ITEM_SUBCLASS_CONTAINER &&
if (!pItem && pProto->Class == ITEM_CLASS_CONTAINER && pProto->SubClass == ITEM_SUBCLASS_CONTAINER &&
(pProto->Bonding == NO_BIND || pProto->Bonding == BIND_WHEN_PICKED_UP))
searchSlotStart = INVENTORY_SLOT_BAG_START;