From 51c5797a42c14a1f5fe33d1b08969a522dbe6d4e Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 24 May 2014 20:27:13 +1200 Subject: [PATCH] Avoid a loop closure issue that caused incorrect sequence lookups. --- OpenRA.Game/Graphics/SequenceProvider.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;