Core/QuestStatus: Fix EffectQuestClear, also clear rewarded quests again

--HG--
branch : trunk
This commit is contained in:
linencloth
2010-12-26 21:18:22 +01:00
parent dfbd344aae
commit 6b58081e63
+1 -2
View File
@@ -6101,9 +6101,8 @@ void Spell::EffectQuestClear(SpellEffIndex effIndex)
if (!pQuest)
return;
QuestStatusMap::iterator qs_itr = pPlayer->getQuestStatusMap().find(quest_id);
// Player has never done this quest
if (qs_itr == pPlayer->getQuestStatusMap().end())
if (pPlayer->GetQuestStatus(quest_id) == QUEST_STATUS_NONE)
return;
// remove all quest entries for 'entry' from quest log