fix crash in SatelliteLaunch ctor

This commit is contained in:
Chris Forbes
2011-04-13 11:37:15 +12:00
parent 5adda21b28
commit 7be167b4fd

View File

@@ -24,9 +24,10 @@ namespace OpenRA.Mods.RA.Effects
public SatelliteLaunch(Actor a)
{
pos = a.CenterLocation - .5f * doors.Image.size + doorOffset;
doors.PlayThen("active",
() => a.World.AddFrameEndTask(w => w.Remove(this)));
pos = a.CenterLocation - .5f * doors.Image.size + doorOffset;
}
public void Tick( World world )