mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-07 04:37:48 +00:00
Questdetails popup for bots without quest attached. (#705)
This commit is contained in:
@@ -167,6 +167,9 @@ bool ConfirmQuestAction::Execute(Event event)
|
|||||||
p >> quest;
|
p >> quest;
|
||||||
Quest const* qInfo = sObjectMgr->GetQuestTemplate(quest);
|
Quest const* qInfo = sObjectMgr->GetQuestTemplate(quest);
|
||||||
|
|
||||||
|
if (!qInfo)
|
||||||
|
return false;
|
||||||
|
|
||||||
quest = qInfo->GetQuestId();
|
quest = qInfo->GetQuestId();
|
||||||
if (!bot->CanTakeQuest(qInfo, false))
|
if (!bot->CanTakeQuest(qInfo, false))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user