diff --git a/src/strategy/actions/AcceptQuestAction.cpp b/src/strategy/actions/AcceptQuestAction.cpp index 259e31db..ba5435c1 100644 --- a/src/strategy/actions/AcceptQuestAction.cpp +++ b/src/strategy/actions/AcceptQuestAction.cpp @@ -167,6 +167,9 @@ bool ConfirmQuestAction::Execute(Event event) p >> quest; Quest const* qInfo = sObjectMgr->GetQuestTemplate(quest); + if (!qInfo) + return false; + quest = qInfo->GetQuestId(); if (!bot->CanTakeQuest(qInfo, false)) {