summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/vm/multi.lua3
-rw-r--r--server/src/vm/value.lua2
2 files changed, 1 insertions, 4 deletions
diff --git a/server/src/vm/multi.lua b/server/src/vm/multi.lua
index 5079468e..809b5244 100644
--- a/server/src/vm/multi.lua
+++ b/server/src/vm/multi.lua
@@ -21,9 +21,6 @@ function mt:push(value, isLast)
end
function mt:get(index)
- if index > self.len then
- self.len = index
- end
return self[index]
end
diff --git a/server/src/vm/value.lua b/server/src/vm/value.lua
index f0525b14..e0837d53 100644
--- a/server/src/vm/value.lua
+++ b/server/src/vm/value.lua
@@ -359,9 +359,9 @@ function mt:eachInfo(callback)
list[#list+1] = info
else
self._info[srcId] = nil
- self._infoCount = self._infoCount - 1
end
end
+ self._infoCount = #list
table.sort(list, function (a, b)
return a._sort < b._sort
end)