local t ={}
for 1,10 do
local u = CreateUnit(player,unityIdx,y,face)
t = true
end
for u in pairs(t) do
KillUnit(u)
end
Does this code cause asynchronization and dropping? If so, why and how should I modify it?
Does using Lua to register events and callbacks create a permanent leak?