From 6571f926fbb39d3a48f40d661172aa767fee2061 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Thu, 29 Sep 2016 21:21:34 +0200 Subject: [PATCH] Aircraft.ReserveSpawnBuilding style fixes --- OpenRA.Mods.Common/Traits/Air/Aircraft.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs index 9fc472ea1e..b245eddf41 100644 --- a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs +++ b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs @@ -266,12 +266,12 @@ namespace OpenRA.Mods.Common.Traits protected void ReserveSpawnBuilding() { - /* HACK: not spawning in the air, so try to assoc. with our afld. */ - var afld = GetActorBelow(); - if (afld == null) + // HACK: Not spawning in the air, so try to associate with our spawner. + var spawner = GetActorBelow(); + if (spawner == null) return; - MakeReservation(afld); + MakeReservation(spawner); } public void MakeReservation(Actor target)