Core/Handlers: Fixed equipament manager with empty slots. Yes kids, dont use drugs !
Followup: 42be04898c6fd001160ee4fdf00fc2ba5c5c1ee3
This commit is contained in:
1 parent
239b31a66d
commit
1c19aa7b71
1 file changed
+2
-2
@@ -1707,7 +1707,7 @@ void WorldSession::HandleEquipmentSetUse(WorldPacket& recvData)
|
||||
InventoryResult msg = _player->CanStoreItem(NULL_BAG, NULL_SLOT, sDest, uItem, false);
|
||||
if (msg == EQUIP_ERR_OK)
|
||||
{
|
||||
if (_player->CanEquipItem(NULL_SLOT, dstpos, uItem, false) != EQUIP_ERR_OK)
|
||||
if (_player->CanUnequipItem(dstpos, true) != EQUIP_ERR_OK)
|
||||
continue;
|
||||
|
||||
_player->RemoveItem(INVENTORY_SLOT_BAG_0, i, true);
|
||||
@@ -1722,7 +1722,7 @@ void WorldSession::HandleEquipmentSetUse(WorldPacket& recvData)
|
||||
if (item->GetPos() == dstpos)
|
||||
continue;
|
||||
|
||||
if (_player->CanUnequipItem(dstpos, true) != EQUIP_ERR_OK)
|
||||
if (_player->CanEquipItem(NULL_SLOT, dstpos, item, false) != EQUIP_ERR_OK)
|
||||
continue;
|
||||
|
||||
_player->SwapItem(item->GetPos(), dstpos);
|
||||
|
||||
Reference in new issue
Block a user