diff --git a/OpenRA.Mods.Common/Traits/HitShape.cs b/OpenRA.Mods.Common/Traits/HitShape.cs index 917010c72c..48047c45cf 100644 --- a/OpenRA.Mods.Common/Traits/HitShape.cs +++ b/OpenRA.Mods.Common/Traits/HitShape.cs @@ -69,16 +69,18 @@ namespace OpenRA.Mods.Common.Traits public class HitShape : ConditionalTrait, ITargetablePositions { - BodyOrientation orientation; + readonly BodyOrientation orientation; ITargetableCells targetableCells; Turreted turret; public HitShape(Actor self, HitShapeInfo info) - : base(info) { } + : base(info) + { + orientation = self.Trait(); + } protected override void Created(Actor self) { - orientation = self.Trait(); targetableCells = self.TraitOrDefault(); turret = self.TraitsImplementing().FirstOrDefault(t => t.Name == Info.Turret);