fix(GameObject/Quest): GameObject quest / gossip window (#2676)

Co-authored-by: Stoabrogga <38475780+Stoabrogga@users.noreply.github.com>
This commit is contained in:
Francesco Borzì
2020-03-15 10:09:25 +01:00
committed by GitHub
parent ec91c779f3
commit 8231a7cc1a
2 changed files with 4 additions and 1 deletions

View File

@@ -316,7 +316,7 @@ void WorldSession::HandleQuestgiverChooseRewardOpcode(WorldPacket & recvData)
// Send next quest
if (Quest const* nextQuest = _player->GetNextQuest(guid, quest))
{
if (_player->CanAddQuest(nextQuest, false) && _player->CanTakeQuest(quest, false))
if (_player->CanAddQuest(nextQuest, false) && _player->CanTakeQuest(nextQuest, false))
{
if (nextQuest->IsAutoAccept())
_player->AddQuestAndCheckCompletion(nextQuest, object);