aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorAzazel <azazel.kon@gmail.com>2011-04-29 16:48:15 +0600
committerAzazel <azazel.kon@gmail.com>2011-04-29 16:48:15 +0600
commit6fb2bf4224b20c0ccecfceaca8d39ae27b8677ea (patch)
treeeedb96236b09d49bdbcbf5d8931dffc60f4b2f22 /src/server/scripts/World
parente1647aaa29cc984672a5f6e56b08278140375443 (diff)
Core: use enum InventoryResult as return type for functions working with player items.
Original patch by TOM_RUS.
Diffstat (limited to 'src/server/scripts/World')
-rw-r--r--src/server/scripts/World/item_scripts.cpp5
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);
}
}