Core: Fix warnings

This commit is contained in:
Vincent-Michael
2013-06-29 01:56:44 +02:00
parent f4f09e3eb5
commit 08e2b03b28
2 changed files with 2 additions and 12 deletions

View File

@@ -1022,7 +1022,7 @@ public:
else
{
uint32 moneyToAddMsg = moneyToAdd * -1;
if (newmoney > MAX_MONEY_AMOUNT)
if (newmoney > int64(MAX_MONEY_AMOUNT))
newmoney = MAX_MONEY_AMOUNT;
handler->PSendSysMessage(LANG_YOU_TAKE_MONEY, moneyToAddMsg, handler->GetNameLink(target).c_str());
@@ -1037,7 +1037,7 @@ public:
if (handler->needReportToTarget(target))
ChatHandler(target->GetSession()).PSendSysMessage(LANG_YOURS_MONEY_GIVEN, handler->GetNameLink().c_str(), uint32(moneyToAdd));
if (moneyToAdd >= MAX_MONEY_AMOUNT)
if (moneyToAdd >= int64(MAX_MONEY_AMOUNT))
moneyToAdd = MAX_MONEY_AMOUNT;
if (targetMoney >= uint64(MAX_MONEY_AMOUNT) - moneyToAdd)