debug.dump(): print empty strings as hash key correctly
This commit is contained in:
parent
6371627424
commit
f7bd13fed3
2 changed files with 2 additions and 1 deletions
|
@ -177,6 +177,8 @@ var _dump_string = func(str) {
|
|||
|
||||
# dump hash keys as variables if they are valid variable names, or as string otherwise
|
||||
var _dump_key = func(s) {
|
||||
if (!size(s))
|
||||
return _dump_string(s);
|
||||
if (num(s) != nil)
|
||||
return _num(s);
|
||||
if (!globals.string.isalpha(s[0]) and s[0] != `_`)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
var set_runway_from_metar_wind = func {
|
||||
|
||||
if (!getprop("/environment/metar/real-metar"))
|
||||
return printlog("info", "metar-rwy: no live weather");
|
||||
if (!getprop("/sim/startup/options/airport"))
|
||||
|
|
Loading…
Add table
Reference in a new issue