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/game/Chat/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/game/Chat/Commands')
| -rwxr-xr-x | src/server/game/Chat/Commands/Level3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Chat/Commands/Level3.cpp b/src/server/game/Chat/Commands/Level3.cpp index 2b6f960597c..caef8650d29 100755 --- a/src/server/game/Chat/Commands/Level3.cpp +++ b/src/server/game/Chat/Commands/Level3.cpp @@ -282,7 +282,7 @@ bool ChatHandler::HandleAddItemCommand(const char *args) // check space and find places ItemPosCountVec dest; - uint8 msg = plTarget->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itemId, count, &noSpaceForCount); + InventoryResult msg = plTarget->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itemId, count, &noSpaceForCount); if (msg != EQUIP_ERR_OK) // convert to possible store amount count -= noSpaceForCount; @@ -348,7 +348,7 @@ bool ChatHandler::HandleAddItemSetCommand(const char *args) { found = true; ItemPosCountVec dest; - uint8 msg = playerTarget->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itr->second.ItemId, 1); + InventoryResult msg = playerTarget->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itr->second.ItemId, 1); if (msg == EQUIP_ERR_OK) { Item* item = playerTarget->StoreNewItem(dest, itr->second.ItemId, true); |
