[Merchants] Fix issue where an item purchased with 1 charges actually is bought with 0 charges

Co-authored-by: ProducerZekServer <go@away.com>
This commit is contained in:
Gangsta
2021-07-26 23:03:17 -07:00
committed by GitHub
parent 5d92d484a1
commit 7e85224202
+1 -1
View File
@@ -12997,7 +12997,7 @@ void Client::Handle_OP_ShopPlayerBuy(const EQApplicationPacket *app)
int16 charges = 0;
if (item->Stackable || tmpmer_used)
charges = mp->quantity;
else if ( item->MaxCharges > 1)
else if ( item->MaxCharges >= 1)
charges = item->MaxCharges;
EQ::ItemInstance* inst = database.CreateItem(item, charges);