Core/Misc: Various crash fixes
Port From (https://github.com/TrinityCore/TrinityCore/commit/4f65dc5e20cc3af5b3595809707c632faa6e5900)
This commit is contained in:
@@ -470,7 +470,8 @@ namespace Game
|
||||
return;
|
||||
}
|
||||
|
||||
Player target = Global.ObjAccessor.FindPlayer(target_playerguid);
|
||||
// player on other map
|
||||
Player target = Global.ObjAccessor.GetPlayer(_player, target_playerguid);
|
||||
if (!target)
|
||||
{
|
||||
GetPlayer().SendLootError(lootguid, ObjectGuid.Empty, LootError.PlayerNotFound);
|
||||
|
||||
Reference in New Issue
Block a user