From 57909e567086733d729677fdc98ef06ff37cb49b Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 21 Dec 2017 19:50:54 +0100 Subject: [PATCH] prediction: do not wipe table while still in pairs --- modules/prediction.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/prediction.lua b/modules/prediction.lua index 23b9e36a..432aaa79 100644 --- a/modules/prediction.lua +++ b/modules/prediction.lua @@ -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