Core/QuestHandler: Fix potential crash caused by QUEST_FLAGS_PARTY_ACCEPT with conditions
Port From (https://github.com/TrinityCore/TrinityCore/commit/c50c877bdbbce4453fee6ef756822c96988a60df)
This commit is contained in:
@@ -171,7 +171,7 @@ namespace Game
|
||||
{
|
||||
Player player = refe.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