This commit is contained in:
Chris Forbes
2010-03-19 20:07:58 +13:00
parent a3a62d2c14
commit 58041f1b45
3 changed files with 7 additions and 5 deletions

View File

@@ -35,7 +35,8 @@ namespace OpenRA.FileFormats
public static void Load(object self, MiniYaml my)
{
foreach (var x in my.Nodes)
LoadField( self, x.Key, x.Value.Value );
if (!x.Key.StartsWith("-"))
LoadField( self, x.Key, x.Value.Value );
}
public static void LoadField( object self, string key, string value )