summaryrefslogtreecommitdiff
path: root/script/vm/generic.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/generic.lua')
-rw-r--r--script/vm/generic.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/script/vm/generic.lua b/script/vm/generic.lua
index 7b0eb120..e0096e30 100644
--- a/script/vm/generic.lua
+++ b/script/vm/generic.lua
@@ -67,12 +67,12 @@ local function cloneObject(node, resolved)
}
for i, field in ipairs(node.fields) do
local newField = {
- type = field.type,
- start = field.start,
- finish = field.finish,
- parent = newTable,
- name = field.name,
- extends = cloneObject(field.extends, resolved)
+ type = field.type,
+ start = field.start,
+ finish = field.finish,
+ parent = newTable,
+ name = cloneObject(field.name, resolved),
+ extends = cloneObject(field.extends, resolved),
}
newField.name.parent = newField
newField.extends.parent = newField