Fix map importer

This commit is contained in:
Paul Chote
2010-08-15 16:58:46 +12:00
parent 26e823fc25
commit 54f7b6430d
2 changed files with 9 additions and 5 deletions

View File

@@ -10,6 +10,7 @@
using System.Collections.Generic;
using System.Collections;
using System.IO;
namespace OpenRA.FileFormats
{
@@ -22,6 +23,9 @@ namespace OpenRA.FileFormats
public ActorReference( string type, Dictionary<string, MiniYaml> inits )
{
if (!Rules.Info.ContainsKey(type))
throw new InvalidDataException("Unknown actor: `{0}'".F(type));
Type = type;
InitDict = new TypeDictionary();
foreach( var i in inits )