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

Fix for unlimited charges in bazaar
This commit is contained in:
Mitch Freeman authored and GitHub committed 2024-09-18 09:36:00 -04:00
1 parent 52dcf35425
commit 5d1fe68906
1 file changed
+1 -1
+1 -1
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(