prediction: do not wipe table while still in pairs

This commit is contained in:
shagu
2017-12-21 19:50:54 +01:00
parent 7140842a4f
commit 57909e5670
-3
View File
@@ -117,9 +117,6 @@ pfUI:RegisterModule("prediction", function ()
for sender, amount in pairs(heals[target]) do
if amount[2] <= GetTime() then
heals[target][sender] = nil
if table.getn(heals[target]) == 0 then
heals[target] = nil
end
else
sumheal = sumheal + amount[1]
end