diff options
author | Azazel <azazel.kon@gmail.com> | 2011-04-29 16:48:15 +0600 |
---|---|---|
committer | Azazel <azazel.kon@gmail.com> | 2011-04-29 16:48:15 +0600 |
commit | 6fb2bf4224b20c0ccecfceaca8d39ae27b8677ea (patch) | |
tree | eedb96236b09d49bdbcbf5d8931dffc60f4b2f22 /src/server/scripts/Commands | |
parent | e1647aaa29cc984672a5f6e56b08278140375443 (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/Commands')
-rw-r--r-- | src/server/scripts/Commands/cs_debug.cpp | 6 | ||||
-rw-r--r-- | src/server/scripts/Commands/cs_npc.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/server/scripts/Commands/cs_debug.cpp b/src/server/scripts/Commands/cs_debug.cpp index a0a01ea2875..237fa210933 100644 --- a/src/server/scripts/Commands/cs_debug.cpp +++ b/src/server/scripts/Commands/cs_debug.cpp @@ -249,7 +249,7 @@ public: if (!*args) return false; - uint8 msg = atoi(args); + InventoryResult msg = InventoryResult(atoi(args)); handler->GetSession()->GetPlayer()->SendEquipError(msg, NULL, NULL); return true; } @@ -259,7 +259,7 @@ public: if (!*args) return false; - uint8 msg = atoi(args); + SellResult msg = SellResult(atoi(args)); handler->GetSession()->GetPlayer()->SendSellError(msg, 0, 0, 0); return true; } @@ -269,7 +269,7 @@ public: if (!*args) return false; - uint8 msg = atoi(args); + BuyResult msg = BuyResult(atoi(args)); handler->GetSession()->GetPlayer()->SendBuyError(msg, 0, 0, 0); return true; } diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp index b5431b823f8..7bb661cd792 100644 --- a/src/server/scripts/Commands/cs_npc.cpp +++ b/src/server/scripts/Commands/cs_npc.cpp @@ -1299,7 +1299,7 @@ public: uint32 ItemID = atoi(pItemID); uint32 SlotID = atoi(pSlotID); - ItemPrototype* tmpItem = sObjectMgr->GetItemTemplate(ItemID); + ItemTemplate* tmpItem = sObjectMgr->GetItemTemplate(ItemID); bool added = false; if (tmpItem) |