summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/compiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index cebe01cb..8a01cc18 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -976,7 +976,7 @@ local compilerSwitch = util.switch()
local runner = vm.createRunner(source)
runner:launch(function (src, node)
if src.type == 'setlocal' then
- if src.value then
+ if src.value and guide.isLiteral(src.value) then
if src.value.type == 'table' then
vm.setNode(src, src.value)
else