Fix crash when adding new gameobject with command.

This commit is contained in:
hondacrx
2021-01-11 17:19:21 -05:00
parent 87859a67a1
commit 970876df40
4 changed files with 3 additions and 3 deletions
@@ -950,7 +950,7 @@ namespace Game.Entities
Cypher.Assert(data.spawnId == m_spawnId);
data.Id = GetEntry();
data.spawnPoint.WorldRelocate(this);
data.spawnPoint = new WorldLocation(this);
data.rotation = m_worldRotation;
data.spawntimesecs = (int)(m_spawnedByDefault ? m_respawnDelayTime : -m_respawnDelayTime);
data.animprogress = GetGoAnimProgress();
+1 -1
View File
@@ -3481,7 +3481,7 @@ namespace Game.Entities
Cypher.Assert(!IsResurrectRequested());
_resurrectionData = new ResurrectionData();
_resurrectionData.GUID = caster.GetGUID();
_resurrectionData.Location.WorldRelocate(caster);
_resurrectionData.Location = new WorldLocation(caster);
_resurrectionData.Health = health;
_resurrectionData.Mana = mana;
_resurrectionData.Aura = appliedAura;