mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
prediction: do not wipe table while still in pairs
This commit is contained in:
@@ -117,9 +117,6 @@ pfUI:RegisterModule("prediction", function ()
|
|||||||
for sender, amount in pairs(heals[target]) do
|
for sender, amount in pairs(heals[target]) do
|
||||||
if amount[2] <= GetTime() then
|
if amount[2] <= GetTime() then
|
||||||
heals[target][sender] = nil
|
heals[target][sender] = nil
|
||||||
if table.getn(heals[target]) == 0 then
|
|
||||||
heals[target] = nil
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
sumheal = sumheal + amount[1]
|
sumheal = sumheal + amount[1]
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user