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:
hondacrx
2022-05-29 22:38:16 -04:00
parent 0cd59a5176
commit 42e17b0c6f
+1 -1
View File
@@ -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))