From c5becaab9becebc218356dad852dfd7aedc1f68d Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 1 Aug 2015 13:30:46 +0100 Subject: [PATCH] Make WithIdleOverlay fields readonly. --- OpenRA.Mods.Common/Traits/Render/WithIdleOverlay.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Render/WithIdleOverlay.cs b/OpenRA.Mods.Common/Traits/Render/WithIdleOverlay.cs index 5a8014f3a3..e1e148a937 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithIdleOverlay.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithIdleOverlay.cs @@ -59,7 +59,7 @@ namespace OpenRA.Mods.Common.Traits public class WithIdleOverlay : UpgradableTrait, INotifyDamageStateChanged, INotifyBuildComplete, INotifySold, INotifyTransform { - Animation overlay; + readonly Animation overlay; bool buildComplete; public WithIdleOverlay(Actor self, WithIdleOverlayInfo info)