summaryrefslogtreecommitdiff
path: root/script/vm/global.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r--script/vm/global.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua
index 19474bb5..c1b5f320 100644
--- a/script/vm/global.lua
+++ b/script/vm/global.lua
@@ -552,7 +552,7 @@ function vm.compileByGlobal(source)
if vm.bindDocs(source) then
return true
end
- if source.value then
+ if source.value and source.value.type ~= 'nil' then
vm.setNode(source, vm.compileNode(source.value))
return true
end