From eeb101c040c61e67ea6a5c9318e60c3c6bd0f901 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 1 Aug 2015 13:29:15 +0100 Subject: [PATCH] Make Contrail fields readonly. --- OpenRA.Mods.Common/Effects/Contrail.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Effects/Contrail.cs b/OpenRA.Mods.Common/Effects/Contrail.cs index 0a784df1a3..c5c54df60b 100644 --- a/OpenRA.Mods.Common/Effects/Contrail.cs +++ b/OpenRA.Mods.Common/Effects/Contrail.cs @@ -36,9 +36,11 @@ namespace OpenRA.Mods.Common.Effects class Contrail : ITick, IRender { - ContrailInfo info; + readonly ContrailInfo info; + readonly IBodyOrientation body; + + // This is a mutable struct, so it can't be readonly. ContrailRenderable trail; - IBodyOrientation body; public Contrail(Actor self, ContrailInfo info) {