Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Commit fae7e32

Browse files
committed
fix table.setKey.
1 parent d7fd8f4 commit fae7e32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iland-core.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -2796,7 +2796,8 @@ function table.setKey(tab,path,value)
27962796
return
27972797
end
27982798

2799-
if typeEx(tab[pathes[1]]) ~= 'table' then
2799+
local T = typeEx(tab[pathes[1]])
2800+
if T ~= 'table' and (T~='array' or (T=='array' and typeEx(value)=='array')) then
28002801
tab[pathes[1]] = value
28012802
return
28022803
end

0 commit comments

Comments
 (0)