Fix: expand table pooling across modules to reduce garbage collection

This commit is contained in:
Bluewhale1337
2026-09-13 20:09:46 +02:00
parent 27ba0a386e
commit 7beff1c4ca
8 changed files with 21 additions and 9 deletions
+2 -1
View File
@@ -1153,7 +1153,7 @@ end
function HealBot_Action_AppendNewUnits()
if not HealBot_Grid_LastI then return end
local unitsToCheck = {}
local unitsToCheck = HealBot_GetTable()
-- Gather units based on config, similar to PartyChanged
if HealBot_Config.GroupHeals == 1 then
@@ -1220,4 +1220,5 @@ function HealBot_Action_AppendNewUnits()
HealBot_Action_AppendUnit(unit)
end
end
HealBot_ReleaseTable(unitsToCheck)
end