mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-13 03:32:28 -04:00
Core/Players: Don't count empty bag slots (slots where you equip bags) as free inventory slots
This commit is contained in:
@@ -9492,7 +9492,7 @@ uint32 Player::GetFreeInventorySlotCount(EnumFlag<ItemSearchLocation> location /
|
||||
if (location.HasFlag(ItemSearchLocation::Inventory))
|
||||
{
|
||||
uint8 inventoryEnd = INVENTORY_SLOT_ITEM_START + GetInventorySlotCount();
|
||||
for (uint8 i = INVENTORY_SLOT_BAG_START; i < inventoryEnd; ++i)
|
||||
for (uint8 i = INVENTORY_SLOT_ITEM_START; i < inventoryEnd; ++i)
|
||||
if (!GetItemByPos(INVENTORY_SLOT_BAG_0, i))
|
||||
++freeSlotCount;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user