Import actor facing and health from legacy maps
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user