summaryrefslogtreecommitdiff
path: root/script/vm/infer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/infer.lua')
-rw-r--r--script/vm/infer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua
index 1f77b638..d30ba36c 100644
--- a/script/vm/infer.lua
+++ b/script/vm/infer.lua
@@ -433,7 +433,7 @@ function mt:viewLiterals()
or n.type == 'integer'
or n.type == 'boolean' then
local literal = util.viewLiteral(n[1])
- if not mark[literal] then
+ if literal and not mark[literal] then
literals[#literals+1] = literal
mark[literal] = true
end