diff --git a/OpenRA.Game/Graphics/SequenceProvider.cs b/OpenRA.Game/Graphics/SequenceProvider.cs index 5ce8d618f4..340cc622d9 100644 --- a/OpenRA.Game/Graphics/SequenceProvider.cs +++ b/OpenRA.Game/Graphics/SequenceProvider.cs @@ -105,8 +105,11 @@ namespace OpenRA.Graphics .Aggregate(sequenceNodes, MiniYaml.MergeLiberal); var items = new Dictionary>>(); - foreach (var node in nodes) + foreach (var n in nodes) { + // Work around the loop closure issue in older versions of C# + var node = n; + var key = node.Value.ToLines(node.Key).JoinWith("|"); Lazy> t;