Core/QuestHandler: Fix potential crash caused by QUEST_FLAGS_PARTY_ACCEPT with conditions (#26880)

(cherry picked from commit 5a60082e5d)
This commit is contained in:
HelloKitty
2021-09-02 01:53:43 -05:00
committed by Shauren
parent 81e9f0ef79
commit c50c877bdb

View File

@@ -185,7 +185,7 @@ void WorldSession::HandleQuestgiverAcceptQuestOpcode(WorldPackets::Quest::QuestG
{
Player* player = itr->GetSource();
if (!player || player == _player) // not self
if (!player || player == _player || !player->IsInMap(_player)) // not self and in same map
continue;
if (player->CanTakeQuest(quest, true))