Fix Map JSON loading errors (#54563)

Also fixes that one runtime everyone runs into when they first load in
This commit is contained in:
Jordan Brown
2020-10-24 23:47:12 -03:00
committed by GitHub
parent 9b756b4ee2
commit d240eb7fd6
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
var/command = macro_set[key]
winset(src, "default-[REF(key)]", "parent=default;name=[key];command=[command]")
if(prefs.hotkeys)
if(prefs?.hotkeys)
winset(src, null, "input.focus=true input.background-color=[COLOR_INPUT_ENABLED]")
else
winset(src, null, "input.focus=true input.background-color=[COLOR_INPUT_DISABLED]")