Merge pull request #7313 from Unit158/DropProductFix

Fixed airdrop production crash
This commit is contained in:
Oliver Brakmann
2015-01-11 11:58:20 +01:00

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
{