fix(Core/Player): Allow to swap bags when they are filled (#17086)

This commit is contained in:
Kitzunu 2023-09-05 11:35:15 +02:00 committed by GitHub
parent dd647da913
commit 1ed1cd0c73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -944,9 +944,6 @@ InventoryResult Player::CanStoreItem_InSpecificSlot(uint8 bag, uint8 slot, ItemP
uint32 need_space;
if (pSrcItem && pSrcItem->IsNotEmptyBag() && !IsBagPos(uint16(bag) << 8 | slot))
return EQUIP_ERR_CAN_ONLY_DO_WITH_EMPTY_BAGS;
// empty specific slot - check item fit to slot
if (!pItem2 || swap)
{