mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/QuestHandler: Fix potential crash caused by QUEST_FLAGS_PARTY_ACCEPT with conditions (#26880)
(cherry picked from commit 5a60082e5d)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user