Make WithTurret fields readonly.

This commit is contained in:
Paul Chote
2015-08-01 13:32:05 +01:00
parent d20819735c
commit 4e27ac9aac

View File

@@ -58,11 +58,11 @@ namespace OpenRA.Mods.Common.Traits
public class WithTurret : UpgradableTrait<WithTurretInfo>, ITick, INotifyDamageStateChanged
{
RenderSprites rs;
IBodyOrientation body;
AttackBase ab;
Turreted t;
Armament[] arms;
readonly RenderSprites rs;
readonly IBodyOrientation body;
readonly AttackBase ab;
readonly Turreted t;
readonly Armament[] arms;
public readonly Animation DefaultAnimation;
public WithTurret(Actor self, WithTurretInfo info)