mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Fix how Alternate Currency Reclaim and Create works if the player has 0 currency available
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user