mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Questdetails popup for bots without quest attached. (#705)
This commit is contained in:
parent
67c9b1c882
commit
c1247d23f8
@ -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))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user