diff options
Diffstat (limited to 'src/server/scripts/World')
| -rw-r--r-- | src/server/scripts/World/item_scripts.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/scripts/World/item_scripts.cpp b/src/server/scripts/World/item_scripts.cpp index c248738a6d6..4129fe0e3fa 100644 --- a/src/server/scripts/World/item_scripts.cpp +++ b/src/server/scripts/World/item_scripts.cpp @@ -105,12 +105,13 @@ public: { ItemPosCountVec dest; uint32 itemId = 23614; - uint8 msg = pPlayer->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itemId, 1); + InventoryResult msg = pPlayer->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itemId, 1); if (msg == EQUIP_ERR_OK) { if (Item* item = pPlayer->StoreNewItem(dest, itemId, true)) pPlayer->SendNewItem(item, 1, false, true); - } else + } + else pPlayer->SendEquipError(msg, NULL, NULL, itemId); } } |
