EnumDestructablesInCircleBJ
- Parameters
radius realloc locationactionFunc code- comment
- bug
Leaks handle
r: In Jass you must set local variables that hold agents (or any child type) tonullat the end of functions to avoid reference counter leaks.- patch
1.00
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
function EnumDestructablesInCircleBJ takes real radius, location loc, code actionFunc returns nothing local rect r if (radius >= 0) then set bj_enumDestructableCenter = loc set bj_enumDestructableRadius = radius set r = GetRectFromCircleBJ(loc, radius) call EnumDestructablesInRect(r, filterEnumDestructablesInCircleBJ, actionFunc) call RemoveRect(r) endif endfunction