Other half of bazaar exploit

This commit is contained in:
KimLS 2015-03-22 23:18:08 -07:00
parent f021ee5491
commit 0cf5cca415

View File

@ -1652,7 +1652,12 @@ void Client::BuyTraderItem(TraderBuy_Struct* tbs, Client* Trader, const EQApplic
outtbs->Price = TotalCost;
}
this->TakeMoneyFromPP(TotalCost);
if(!TakeMoneyFromPP(TotalCost)) {
database.SetHackerFlag(account_name, name, "Attempted to buy something in bazaar but did not have enough money.");
TradeRequestFailed(app);
safe_delete(outapp);
return;
}
Log.Out(Logs::Detail, Logs::Trading, "Customer Paid: %d in Copper", TotalCost);