mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Use enum InventoryResult as return type for few functions.
This commit is contained in:
parent
23a861e4a6
commit
730a907252
18 changed files with 184 additions and 185 deletions
|
|
@ -2508,7 +2508,7 @@ bool ChatHandler::HandleAddItemSetCommand(char* args)
|
|||
{
|
||||
found = true;
|
||||
ItemPosCountVec dest;
|
||||
uint8 msg = plTarget->CanStoreNewItem( NULL_BAG, NULL_SLOT, dest, pProto->ItemId, 1 );
|
||||
InventoryResult msg = plTarget->CanStoreNewItem( NULL_BAG, NULL_SLOT, dest, pProto->ItemId, 1 );
|
||||
if (msg == EQUIP_ERR_OK)
|
||||
{
|
||||
Item* item = plTarget->StoreNewItem( dest, pProto->ItemId, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue