Core: use enum InventoryResult as return type for functions working with player items.
Original patch by TOM_RUS.
This commit is contained in:
1 parent
e1647aaa29
commit
6fb2bf4224
22 files changed
+164
-191
No files matched your search
@@ -250,7 +250,7 @@ public:
|
||||
{
|
||||
ItemPosCountVec dest;
|
||||
uint32 itemId = 24573;
|
||||
uint8 msg = pPlayer->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itemId, 1, false);
|
||||
InventoryResult msg = pPlayer->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, itemId, 1, false);
|
||||
if (msg == EQUIP_ERR_OK)
|
||||
{
|
||||
pPlayer->StoreNewItem(dest, itemId, true);
|
||||
|
||||
Reference in new issue
Block a user