From a2bf2bc1a1c679f87eee48daf79b973d107ebae1 Mon Sep 17 00:00:00 2001 From: Xertis <118364459+Xertis@users.noreply.github.com> Date: Sun, 8 Dec 2024 23:49:16 +0300 Subject: [PATCH] fix table.copy --- res/scripts/stdmin.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/res/scripts/stdmin.lua b/res/scripts/stdmin.lua index 14479c7d..3a895059 100644 --- a/res/scripts/stdmin.lua +++ b/res/scripts/stdmin.lua @@ -57,7 +57,11 @@ function table.copy(t) local copied = {} for k, v in pairs(t) do - copied[k] = v + if type(v) == "table" then + copied[k] = table.copy(v) + else + copied[k] = v + end end return copied