Fixed airdrop production crash

This commit is contained in:
Chicken man
2015-01-10 20:40:39 -05:00
parent 0dc65e5cf3
commit 279b7b0279

View File

@@ -55,6 +55,9 @@ namespace OpenRA.Mods.Cnc.Traits
owner.World.AddFrameEndTask(w =>
{
if (!self.IsInWorld || self.IsDead)
return;
var altitude = self.World.Map.Rules.Actors[actorType].Traits.Get<PlaneInfo>().CruiseAltitude;
var a = w.CreateActor(actorType, new TypeDictionary
{