Fix Client::QuestReward overload SummonItem call (#2472)

The overload that took the packet struct wasn't calling SummonItem with
-1 charges, resulting it chargeless items if they had any
This commit is contained in:
Michael Cook (mackal)
2022-10-05 16:23:03 -04:00
committed by GitHub
parent 267472fc91
commit 832bffa811
+1 -1
View File
@@ -8788,7 +8788,7 @@ void Client::QuestReward(Mob* target, const QuestReward_Struct &reward, bool fac
for (int i = 0; i < QUESTREWARD_COUNT; ++i)
if (reward.item_id[i] > 0)
SummonItem(reward.item_id[i], 0, 0, 0, 0, 0, 0, false, EQ::invslot::slotCursor);
SummonItem(reward.item_id[i], -1, 0, 0, 0, 0, 0, false, EQ::invslot::slotCursor);
// only process if both are valid
// if we don't have a target here, we want to just reward, but if there is a target, need to check charm