mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
Fix how Alternate Currency Reclaim and Create works if the player has 0 currency available
This commit is contained in:
parent
b6a01871d8
commit
e304e67cf1
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user