Merge pull request #5422 from pchote/but-I-do-have-shroud

Avoid a loop closure issue that caused incorrect sequence lookups.
This commit is contained in:
Matthias Mailänder
2014-05-24 10:48:14 +02:00

View File

@@ -105,8 +105,11 @@ namespace OpenRA.Graphics
.Aggregate(sequenceNodes, MiniYaml.MergeLiberal);
var items = new Dictionary<string, Lazy<IReadOnlyDictionary<string, Sequence>>>();
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<IReadOnlyDictionary<string, Sequence>> t;