NudgeObjectsInRect
- Parameters
-
nudgeArea rect
- comment
- bug
Leaks handle
g
: In Jass you must set local variables that hold agents (or any child type) tonull
at the end of functions to avoid reference counter leaks.- patch
1.07
- Source
- Blizzard.j
- return type
nothing
- Source code
function NudgeObjectsInRect takes rect nudgeArea returns nothing local group g set g = CreateGroup() call GroupEnumUnitsInRect(g, nudgeArea, null) call ForGroup(g, function NudgeUnitsInRectEnum) call DestroyGroup(g) call EnumItemsInRect(nudgeArea, null, function NudgeItemsInRectEnum) endfunction