From 91f96833c301edbaa7225429c385ce487510a29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 7 Jul 2022 16:49:36 +0800 Subject: fix #1292 --- script/vm/compiler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 995fe395..374ada92 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -714,7 +714,7 @@ function vm.selectNode(list, index) else ---@type vm.node result = vm.compileNode(exp) - if exp.type == 'varargs' and result:isEmpty() then + if result:isEmpty() then result:merge(vm.declareGlobal('type', 'unknown')) end end -- cgit v1.2.3