Fix defaultmod.

This commit is contained in:
Paul Chote
2010-09-09 19:26:33 +12:00
parent dbbdc171d2
commit 45d712d390
3 changed files with 7 additions and 17 deletions

View File

@@ -24,7 +24,9 @@ namespace OpenRA.Graphics
public static void Initialize(string[] sequenceFiles)
{
units = new Dictionary<string, Dictionary<string, Sequence>>();
if (sequenceFiles.Length == 0)
return;
var sequences = sequenceFiles
.Select(s => MiniYaml.FromFile(s))
.Aggregate(MiniYaml.Merge);