Fix whatever this is
This commit is contained in:
@@ -277,7 +277,7 @@ class Flags {
|
||||
case "StateRedirects": for (key => value in section) if (!MOD_REDIRECT_STATES.exists(key)) MOD_REDIRECT_STATES.set(key, value);
|
||||
case "Global": // do nothing
|
||||
default:
|
||||
if (Type.typeof(Reflect.field(Flags, name)) == Type.typeof(section)) Reflect.setField(Flags, name, section);
|
||||
if (Std.isOfType(Reflect.field(Flags, name), haxe.ds.StringMap)) Reflect.setField(Flags, name, section);
|
||||
else trace('Invalid section $name');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user