fix sequences being ignored when the only sequences in the mod are provided by a map

This commit is contained in:
Chris Forbes
2011-09-24 19:57:08 +12:00
parent 2063277654
commit f6661d5e47

View File

@@ -23,10 +23,10 @@ namespace OpenRA.Graphics
public static void Initialize(string[] sequenceFiles, List<MiniYamlNode> sequenceNodes)
{
units = new Dictionary<string, Dictionary<string, Sequence>>();
if (sequenceFiles.Length == 0)
return;
var sequences = sequenceFiles.Select(s => MiniYaml.FromFile(s)).Aggregate(sequenceNodes, MiniYaml.MergeLiberal);
var sequences = sequenceFiles
.Select(s => MiniYaml.FromFile(s))
.Aggregate(sequenceNodes, MiniYaml.MergeLiberal);
foreach (var s in sequences)
LoadSequencesForUnit(s.Key, s.Value);