Core/Players: On CanRewardQuest, use the same item dest vector for all potential rewards
This commit is contained in:
1 parent
3cee0b7dc7
commit
a8484d2789
1 file changed
+1
-2
@@ -15026,11 +15026,11 @@ bool Player::CanRewardQuest(Quest const* quest, uint32 reward, bool msg)
|
||||
if (!CanRewardQuest(quest, msg))
|
||||
return false;
|
||||
|
||||
ItemPosCountVec dest;
|
||||
if (quest->GetRewChoiceItemsCount() > 0)
|
||||
{
|
||||
if (quest->RewardChoiceItemId[reward])
|
||||
{
|
||||
ItemPosCountVec dest;
|
||||
InventoryResult res = CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, quest->RewardChoiceItemId[reward], quest->RewardChoiceItemCount[reward]);
|
||||
if (res != EQUIP_ERR_OK)
|
||||
{
|
||||
@@ -15046,7 +15046,6 @@ bool Player::CanRewardQuest(Quest const* quest, uint32 reward, bool msg)
|
||||
{
|
||||
if (quest->RewardItemId[i])
|
||||
{
|
||||
ItemPosCountVec dest;
|
||||
InventoryResult res = CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, quest->RewardItemId[i], quest->RewardItemIdCount[i]);
|
||||
if (res != EQUIP_ERR_OK)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user