WakePlayerUnits
- Parameters
whichPlayer player- comment
- bug
Leaks handle
g: 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.07
- Source
- Blizzard.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
function WakePlayerUnits takes player whichPlayer returns nothing local group g = CreateGroup() call GroupEnumUnitsOfPlayer(g, whichPlayer, null) call ForGroup(g, function WakePlayerUnitsEnum) call DestroyGroup(g) endfunction