[Bug Fix] Parcel purchase of bazaar items with unlimited charges (#4479)

Fix for unlimited charges in bazaar
This commit is contained in:
Mitch Freeman 2024-09-18 10:36:00 -03:00 committed by GitHub
parent 52dcf35425
commit 5d1fe68906
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3495,7 +3495,7 @@ void Client::BuyTraderItemOutsideBazaar(TraderBuy_Struct *tbs, const EQApplicati
ps.item_slot = parcel_out.slot_id;
strn0cpy(ps.send_to, GetCleanName(), sizeof(ps.send_to));
if (trader_item.item_charges == tbs->quantity) {
if (trader_item.item_charges <= static_cast<int32>(tbs->quantity)) {
TraderRepository::DeleteOne(database, trader_item.id);
} else {
TraderRepository::UpdateQuantity(