mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 21:50:50 -04:00
Core/Players: On CanRewardQuest, use the same item dest vector for all potential rewards
This commit is contained in:
@@ -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