summaryrefslogtreecommitdiff
path: root/script/vm/tracer.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-16 18:16:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-16 18:16:08 +0800
commitdbe11f8bcfd51d98ab42e167f6be1c062c80264c (patch)
treed19dd989c10b36e97a1e74ecff7a3eecb36389b6 /script/vm/tracer.lua
parentabb60bb6d33e3fe02648cb1beba8203b11a8d8fb (diff)
downloadlua-language-server-dbe11f8bcfd51d98ab42e167f6be1c062c80264c.zip
fix runtime error
Diffstat (limited to 'script/vm/tracer.lua')
-rw-r--r--script/vm/tracer.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/tracer.lua b/script/vm/tracer.lua
index de787625..823029f0 100644
--- a/script/vm/tracer.lua
+++ b/script/vm/tracer.lua
@@ -70,6 +70,9 @@ function mt:collectCare(obj)
if obj == self.main then
return
end
+ if not obj then
+ return
+ end
self.careMap[obj] = true
if self.fastCalc then