From 41f0744c4e601ec80e63cce15b6e50f02f6e4a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 11 Jul 2022 17:45:39 +0800 Subject: fix #1320 --- script/vm/value.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script/vm/value.lua') diff --git a/script/vm/value.lua b/script/vm/value.lua index bbae446c..7eab4a8e 100644 --- a/script/vm/value.lua +++ b/script/vm/value.lua @@ -23,7 +23,8 @@ function vm.testCondition(source) hasFalse = true end elseif n.type == 'global' and n.cate == 'type' then - if n.name == 'boolean' then + if n.name == 'boolean' + or n.name == 'unknown' then return nil end if n.name == 'false' -- cgit v1.2.3