Accname
2D-Graphics enthusiast
- Reaction score
- 1,462
if i pick all destructibles in a region and do a bunch of actions with the picked destructible, will it leak? cause unit groups do, but i cant set destructible groups in the variable editor...
Pick every unit in .....
function ForGroupBJ takes group whichGroup, code callback returns nothing // <-- whichGroup will leak here if you dont clean it
// If the user wants the group destroyed, remember that fact and clear
// the flag, in case it is used again in the callback.
local boolean wantDestroy = bj_wantDestroyGroup
set bj_wantDestroyGroup = false
call ForGroup(whichGroup, callback)
// If the user wants the group destroyed, do so now.
if (wantDestroy) then
call DestroyGroup(whichGroup)
endif
endfunction
native EnumDestructablesInRect takes rect r, boolexpr filter, code actionFunc returns nothing
Edit: i dont know but for some reason i cant give rep to acehart...