fixup in RenderCargo

This commit is contained in:
Chris Forbes
2011-05-30 20:58:18 +12:00
parent 05bb335ce2
commit 09027d4770

View File

@@ -28,8 +28,7 @@ namespace OpenRA.Mods.Cnc
public RenderCargo(Actor self)
{
cargo = self.Trait<Cargo>();
if (self.HasTrait<IFacing>())
facing = self.Trait<IFacing>();
facing = self.TraitOrDefault<IFacing>();
}
public IEnumerable<Renderable> ModifyRender(Actor self, IEnumerable<Renderable> r)