1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-30 16:20:21 +00:00

Prevent deepContentCopy corrupting non-plain tables

This commit is contained in:
uramer 2024-02-13 00:59:39 +01:00
parent 851e291501
commit 4ffcb5b197

View File

@ -24,7 +24,7 @@ function aux_ui.deepLayoutCopy(layout)
for k, v in pairs(layout) do
if k == 'content' then
result[k] = deepContentCopy(v)
elseif type(v) == 'table' then
elseif type(v) == 'table' and getmetatable(v) == nil then
result[k] = aux_ui.deepLayoutCopy(v)
else
result[k] = v