mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Quest: Remove assertion
Remove assertion about Quest ExclusiveGroup since they are triggered even when adding valid quests to npcs. Fixes #8336 . How to reproduce steps: - .gm off - add quest 11335 in creature_queststarter - .reload creature_queststarter - get in range of that creature - .gm on - assertion triggered
This commit is contained in:
@@ -15459,9 +15459,6 @@ bool Player::SatisfyQuestPreviousQuest(Quest const* qInfo, bool msg)
|
||||
// can be start if only all quests in prev quest exclusive group completed and rewarded
|
||||
ObjectMgr::ExclusiveQuestGroupsBounds range(sObjectMgr->mExclusiveQuestGroups.equal_range(qPrevInfo->GetExclusiveGroup()));
|
||||
|
||||
// always must be found if qPrevInfo->ExclusiveGroup != 0
|
||||
ASSERT(range.first != range.second);
|
||||
|
||||
for (; range.first != range.second; ++range.first)
|
||||
{
|
||||
uint32 exclude_Id = range.first->second;
|
||||
@@ -15495,9 +15492,6 @@ bool Player::SatisfyQuestPreviousQuest(Quest const* qInfo, bool msg)
|
||||
// can be start if only all quests in prev quest exclusive group active
|
||||
ObjectMgr::ExclusiveQuestGroupsBounds range(sObjectMgr->mExclusiveQuestGroups.equal_range(qPrevInfo->GetExclusiveGroup()));
|
||||
|
||||
// always must be found if qPrevInfo->ExclusiveGroup != 0
|
||||
ASSERT(range.first != range.second);
|
||||
|
||||
for (; range.first != range.second; ++range.first)
|
||||
{
|
||||
uint32 exclude_Id = range.first->second;
|
||||
@@ -15665,9 +15659,6 @@ bool Player::SatisfyQuestExclusiveGroup(Quest const* qInfo, bool msg)
|
||||
|
||||
ObjectMgr::ExclusiveQuestGroupsBounds range(sObjectMgr->mExclusiveQuestGroups.equal_range(qInfo->GetExclusiveGroup()));
|
||||
|
||||
// always must be found if qInfo->ExclusiveGroup != 0
|
||||
ASSERT(range.first != range.second);
|
||||
|
||||
for (; range.first != range.second; ++range.first)
|
||||
{
|
||||
uint32 exclude_Id = range.first->second;
|
||||
|
||||
Reference in New Issue
Block a user