summaryrefslogtreecommitdiff
path: root/script-beta/vm
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/vm')
-rw-r--r--script-beta/vm/getClass.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script-beta/vm/getClass.lua b/script-beta/vm/getClass.lua
index c4bde74a..4d7ef69c 100644
--- a/script-beta/vm/getClass.lua
+++ b/script-beta/vm/getClass.lua
@@ -6,6 +6,9 @@ local function getClass(source, classes, deep)
end
vm.eachField(source, function (src)
local key = vm.getKeyName(src)
+ if not key then
+ return
+ end
local lkey = key:lower()
if lkey == 's|type'
or lkey == 's|__name'
@@ -19,6 +22,9 @@ local function getClass(source, classes, deep)
if source.value then
vm.eachField(source.value, function (src)
local key = vm.getKeyName(src)
+ if not key then
+ return
+ end
local lkey = key:lower()
if lkey == 's|type'
or lkey == 's|__name'