From 5187ee76e913fc35d8eef6705cbe99122667cf2b Mon Sep 17 00:00:00 2001 From: Xertis <118364459+Xertis@users.noreply.github.com> Date: Sun, 26 Jan 2025 14:21:44 +0300 Subject: [PATCH] Changes to comply with the documentation --- res/scripts/stdmin.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/res/scripts/stdmin.lua b/res/scripts/stdmin.lua index abdfb905..cd57df8e 100644 --- a/res/scripts/stdmin.lua +++ b/res/scripts/stdmin.lua @@ -153,13 +153,13 @@ function table.filter(t, func) return t end -function table.set_default(t, indx, default) - if t[indx] == nil then - t[indx] = default +function table.set_default(t, key, default) + if t[key] == nil then + t[key] = default return end - return t[indx] + return t[key] end function table.flat(t)