diff options
| author | maximius <none@none> | 2009-11-11 20:06:47 -0800 | 
|---|---|---|
| committer | maximius <none@none> | 2009-11-11 20:06:47 -0800 | 
| commit | 9b3b1f65b202afafcd5021d7bee584ce34c39901 (patch) | |
| tree | 4d8b55bbe8fe1ddfad068a43e56921ee7f3a6d5d | |
| parent | 389a377dd34ad9a423e1c5528c22975d1b06e6e6 (diff) | |
*Destroy both ReqItems and SrcItems on quest failure.
--HG--
branch : trunk
| -rw-r--r-- | src/game/Player.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index c049b201430..c8ebbad3c1d 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -13382,7 +13382,12 @@ void Player::FailQuest(uint32 questId)          // Destroy quest items on quest failure.          for (uint8 i = 0; i < QUEST_OBJECTIVES_COUNT; ++i)              if (pQuest->ReqItemId[i] > 0 && pQuest->ReqItemCount[i] > 0) +                // Destroy items recieved on starting the quest.                  DestroyItemCount(pQuest->ReqItemId[i], pQuest->ReqItemCount[i], true, true); +        for (uint8 i = 0; i < QUEST_SOURCE_ITEM_IDS_COUNT; ++i) +            if (pQuest->SrcItemId[i] > 0 && pQuest->SrcItemCount[i] > 0) +                // Destroy items recieved during the quest. +                DestroyItemCount(pQuest->SrcItemId[i], pQuest->SrcItemCount[i], true, true);      }  }  | 
