diff options
-rw-r--r-- | libs/core/luasrc/util.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua index 22f295d23f..bcd4ed1e05 100644 --- a/libs/core/luasrc/util.lua +++ b/libs/core/luasrc/util.lua @@ -378,11 +378,11 @@ end --- Create a dynamic table which automatically creates subtables. -- @return Dynamic Table -function create_dtable() +function dtable() return setmetatable({}, { __index = function(tbl, key) return rawget(tbl, key) - or rawget(rawset(tbl, key, create_dtable()), key) + or rawget(rawset(tbl, key, dtable()), key) end }) end |