Core/Quest: fix RewardNextQuest being used to condition previous quests in chain
This commit is contained in:
1 parent
a7484837a8
commit
08e174549e
4 files changed
+4
-40
No files matched your search
@@ -4847,8 +4847,6 @@ void ObjectMgr::LoadQuests()
|
||||
qinfo->GetQuestId(), qinfo->_rewardNextQuest, qinfo->_rewardNextQuest);
|
||||
qinfo->_rewardNextQuest = 0;
|
||||
}
|
||||
else
|
||||
qNextItr->second->PrevChainQuests.push_back(qinfo->GetQuestId());
|
||||
}
|
||||
|
||||
for (uint8 j = 0; j < QUEST_REWARD_CURRENCY_COUNT; ++j)
|
||||
@@ -4980,9 +4978,9 @@ void ObjectMgr::LoadQuests()
|
||||
|
||||
if (qinfo->_nextQuestId)
|
||||
{
|
||||
auto qNextItr = _questTemplates.find(qinfo->GetNextQuestId());
|
||||
auto qNextItr = _questTemplates.find(qinfo->_nextQuestId);
|
||||
if (qNextItr == _questTemplates.end())
|
||||
TC_LOG_ERROR("sql.sql", "Quest %u has NextQuestId %u, but no such quest", qinfo->GetQuestId(), qinfo->GetNextQuestId());
|
||||
TC_LOG_ERROR("sql.sql", "Quest %u has NextQuestId %u, but no such quest", qinfo->GetQuestId(), qinfo->_nextQuestId);
|
||||
else
|
||||
qNextItr->second->DependentPreviousQuests.push_back(qinfo->GetQuestId());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user