Fix how Alternate Currency Reclaim and Create works if the player has 0 currency available

This commit is contained in:
Natedog2012 2015-03-29 01:00:06 -07:00
parent b6a01871d8
commit e304e67cf1

View File

@ -2604,7 +2604,7 @@ void Client::Handle_OP_AltCurrencyReclaim(const EQApplicationPacket *app)
++iter;
}
if (item_id == 0 || reclaim->count == 0) {
if (item_id == 0) {
return;
}
@ -2624,6 +2624,9 @@ void Client::Handle_OP_AltCurrencyReclaim(const EQApplicationPacket *app)
/* Cursor to Item storage */
else {
uint32 max_currency = GetAlternateCurrencyValue(reclaim->currency_id);
if(max_currency == 0)
return;
/* If you input more than you have currency wise, just give the max of the currency you currently have */
if (reclaim->count > max_currency) {