From aea03396d8a9d39dde7cd37e80255b8519448d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 7 Feb 2023 19:49:36 +0800 Subject: check nil #1886 --- script/vm/compiler.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script/vm/compiler.lua') diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 6e76f470..97d947c9 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -1285,6 +1285,9 @@ local compilerSwitch = util.switch() if source.node[1] ~= '_ENV' then return end + if not source.value then + return + end vm.setNode(source, vm.compileNode(source.value)) end) : case 'getglobal' -- cgit v1.2.3