diff options
Diffstat (limited to 'script-beta/vm/getGlobals.lua')
-rw-r--r-- | script-beta/vm/getGlobals.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/vm/getGlobals.lua b/script-beta/vm/getGlobals.lua index 699dd270..116bf8d5 100644 --- a/script-beta/vm/getGlobals.lua +++ b/script-beta/vm/getGlobals.lua @@ -3,6 +3,9 @@ local vm = require 'vm.vm' local function getGlobals(root) local env = guide.getENV(root) + if not env then + return nil + end local cache = {} local mark = {} vm.eachField(env, function (info) |