mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-27 23:02:26 +00:00
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:
parent
267472fc91
commit
832bffa811
@ -8788,7 +8788,7 @@ void Client::QuestReward(Mob* target, const QuestReward_Struct &reward, bool fac
|
|||||||
|
|
||||||
for (int i = 0; i < QUESTREWARD_COUNT; ++i)
|
for (int i = 0; i < QUESTREWARD_COUNT; ++i)
|
||||||
if (reward.item_id[i] > 0)
|
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
|
// 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
|
// if we don't have a target here, we want to just reward, but if there is a target, need to check charm
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user