mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Prevent deepContentCopy corrupting non-plain tables
This commit is contained in:
parent
851e291501
commit
4ffcb5b197
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ function aux_ui.deepLayoutCopy(layout)
|
||||||
for k, v in pairs(layout) do
|
for k, v in pairs(layout) do
|
||||||
if k == 'content' then
|
if k == 'content' then
|
||||||
result[k] = deepContentCopy(v)
|
result[k] = deepContentCopy(v)
|
||||||
elseif type(v) == 'table' then
|
elseif type(v) == 'table' and getmetatable(v) == nil then
|
||||||
result[k] = aux_ui.deepLayoutCopy(v)
|
result[k] = aux_ui.deepLayoutCopy(v)
|
||||||
else
|
else
|
||||||
result[k] = v
|
result[k] = v
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue