summaryrefslogtreecommitdiff
path: root/script/vm/getMeta.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/getMeta.lua')
-rw-r--r--script/vm/getMeta.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/vm/getMeta.lua b/script/vm/getMeta.lua
index b6265dcc..44d1874a 100644
--- a/script/vm/getMeta.lua
+++ b/script/vm/getMeta.lua
@@ -35,10 +35,10 @@ end
function vm.eachMetaValue(source, callback)
vm.eachMeta(source, function (mt)
- for _, src in ipairs(vm.getFields(mt)) do
+ for _, src in ipairs(vm.getDefFields(mt)) do
if vm.getKeyName(src) == '__index' then
if src.value then
- for _, valueSrc in ipairs(vm.getFields(src.value)) do
+ for _, valueSrc in ipairs(vm.getDefFields(src.value)) do
callback(valueSrc)
end
end