Use enum InventoryResult as return type for few functions.

This commit is contained in:
TOM_RUS 2011-04-24 02:47:29 +04:00
parent 23a861e4a6
commit 730a907252
18 changed files with 184 additions and 185 deletions

View file

@ -92,7 +92,7 @@ bool ChatHandler::HandleDebugSendEquipErrorCommand(char* args)
return false;
uint8 msg = atoi(args);
m_session->GetPlayer()->SendEquipError(msg, NULL, NULL);
m_session->GetPlayer()->SendEquipError(InventoryResult(msg), NULL, NULL);
return true;
}
@ -102,7 +102,7 @@ bool ChatHandler::HandleDebugSendSellErrorCommand(char* args)
return false;
uint8 msg = atoi(args);
m_session->GetPlayer()->SendSellError(msg, 0, 0, 0);
m_session->GetPlayer()->SendSellError(SellResult(msg), 0, 0, 0);
return true;
}
@ -112,7 +112,7 @@ bool ChatHandler::HandleDebugSendBuyErrorCommand(char* args)
return false;
uint8 msg = atoi(args);
m_session->GetPlayer()->SendBuyError(msg, 0, 0, 0);
m_session->GetPlayer()->SendBuyError(BuyResult(msg), 0, 0, 0);
return true;
}