Fix for alt currency reclaim exploit and fix for exploit in trader code where price != set price

This commit is contained in:
KimLS 2015-03-20 13:10:36 -07:00
parent 93eb727ade
commit 6c26bc9c8f
2 changed files with 3 additions and 1 deletions

View File

@ -2604,7 +2604,7 @@ void Client::Handle_OP_AltCurrencyReclaim(const EQApplicationPacket *app)
++iter;
}
if (item_id == 0) {
if (item_id == 0 || reclaim->count == 0) {
return;
}

View File

@ -1583,6 +1583,8 @@ void Client::BuyTraderItem(TraderBuy_Struct* tbs, Client* Trader, const EQApplic
return;
}
tbs->Price = BuyItem->GetPrice();
Log.Out(Logs::Detail, Logs::Trading, "Buyitem: Name: %s, IsStackable: %i, Requested Quantity: %i, Charges on Item %i",
BuyItem->GetItem()->Name, BuyItem->IsStackable(), tbs->Quantity, BuyItem->GetCharges());
// If the item is not stackable, then we can only be buying one of them.