diff --git a/Nasal/io.nas b/Nasal/io.nas index 0c0673c93..197dfdcea 100644 --- a/Nasal/io.nas +++ b/Nasal/io.nas @@ -290,7 +290,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func { var _io_open = io.open; var _closure = globals.closure; - globals.closure = func(fn, level) { + globals.closure = func(fn, level = 0) { if(fn != self and fn != caller(0)[1] and fn != _io_open) return _closure(fn, level);