Core/Corpses: Fixed crash in corpse creation
Port From (https://github.com/TrinityCore/TrinityCore/commit/5e90f188f80d217b95606caf745e82253f3a4d47)
This commit is contained in:
@@ -4536,6 +4536,9 @@ namespace Game.Entities
|
||||
// register for player, but not show
|
||||
GetMap().AddCorpse(corpse);
|
||||
|
||||
corpse.UpdatePositionData();
|
||||
corpse.SetZoneScript();
|
||||
|
||||
// we do not need to save corpses for BG/arenas
|
||||
if (!GetMap().IsBattlegroundOrArena())
|
||||
corpse.SaveToDB();
|
||||
|
||||
Reference in New Issue
Block a user