This commit is contained in:
asayre 2010-12-27 10:25:38 +00:00
parent 18d1396670
commit 88a0697b7f

View file

@ -528,6 +528,7 @@ namespace Server.Mobiles
if (spawned == null)
return;
spawned.Spawner = this;
m_Spawned.Add(spawned);
Point3D loc = (spawned is BaseVendor ? this.Location : GetSpawnPosition());
@ -691,6 +692,7 @@ namespace Server.Mobiles
base.OnDelete();
RemoveSpawned();
if ( m_Timer != null )
m_Timer.Stop();
}
@ -809,8 +811,11 @@ namespace Server.Mobiles
{
ISpawnable e = World.FindEntity(reader.ReadInt()) as ISpawnable;
if ( e != null )
m_Spawned.Add( e );
if (e != null)
{
e.Spawner = this;
m_Spawned.Add(e);
}
}
if ( m_Running )