diff --git a/code/game/gamemodes/dynamic/dynamic.dm b/code/game/gamemodes/dynamic/dynamic.dm index 287655fd567..16b31dc3ff6 100644 --- a/code/game/gamemodes/dynamic/dynamic.dm +++ b/code/game/gamemodes/dynamic/dynamic.dm @@ -304,11 +304,10 @@ GLOBAL_VAR_INIT(dynamic_forced_threat_level, -1) if ("Midround") if (ruleset.weight) midround_rules += ruleset - if(configuration) - if(!configuration[ruleset.ruletype]) - continue - if(!configuration[ruleset.ruletype][ruleset.name]) - continue + // Wouldn't it be funny if you wanted to make a multiline if to make it more readable you needed to escape the newlines? + if( configuration \ + && configuration[ruleset.ruletype] \ + && configuration[ruleset.ruletype][ruleset.name]) var/rule_conf = configuration[ruleset.ruletype][ruleset.name] for(var/variable in rule_conf) if(!(variable in ruleset.vars))