Import actor facing and health from legacy maps

This commit is contained in:
Paul Chote
2010-08-15 17:47:04 +12:00
parent 50950cba22
commit a8be81ea2b
2 changed files with 9 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ namespace OpenRA.FileFormats
public ActorReference( string type, Dictionary<string, MiniYaml> inits )
{
if (!Rules.Info.ContainsKey(type))
if (Rules.Info != null && !Rules.Info.ContainsKey(type))
throw new InvalidDataException("Unknown actor: `{0}'".F(type));
Type = type;