mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 20:20:01 +00:00
nameplates: only iterate debuff entries on cleanup
This commit is contained in:
@@ -475,8 +475,8 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
plate.debuffcache.valid = verify
|
||||
elseif plate.debuffcache and plate.debuffcache.valid == verify then
|
||||
-- delete timed out caches
|
||||
for id, data in pairs(plate.debuffcache) do
|
||||
if data.stop and data.stop < GetTime() then
|
||||
for id = 1, 16 do
|
||||
if plate.debuffcache[id].stop and plate.debuffcache[id].stop < GetTime() then
|
||||
table.remove(plate.debuffcache, id)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user