This commit is contained in:
Bunny67
2020-08-05 19:53:35 +03:00
parent 9956fb7ede
commit 5a7277a5a3
+2 -3
View File
@@ -1152,9 +1152,8 @@ local function modify(parent, region, data)
local newPositions = {}
self.growFunc(newPositions, self.sortedChildren)
if #newPositions > 0 then
local max = #newPositions
for index = 1, max do
if newPositions[index] then
for index = 1, #newPositions do
if type(newPositions[index]) == "table" then
local data = self.sortedChildren[index]
if data then
newPositions[data] = newPositions[index]