From 9baa655e26a4091bb9a34457a98a6c3bb8da5c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 1 May 2022 00:38:06 +0800 Subject: fix #1107 --- script/vm/value.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'script/vm/value.lua') diff --git a/script/vm/value.lua b/script/vm/value.lua index aa314875..d29ca9d0 100644 --- a/script/vm/value.lua +++ b/script/vm/value.lua @@ -20,6 +20,15 @@ function vm.test(source) hasFalse = true end end + if n.type == 'global' and n.cate == 'type' then + if n.name == 'true' then + hasTrue = true + end + if n.name == 'false' + or n.name == 'nil' then + hasFalse = true + end + end if n.type == 'nil' then hasFalse = true end -- cgit v1.2.3