GoGo-Boy
You can change this now in User CP
- Reaction score
- 40
Hi,
am out of the sudden no more sure about this.
Do local handle variables leak when they're not initialized and not set to null in the end?
Because I often have a local unit in my high frequency callback function for e.g. detecting units around a missile and do s.th. like this.
As I don't assign a unit to the variable when there's no unit around the missile, it does not leak or?
am out of the sudden no more sure about this.
Do local handle variables leak when they're not initialized and not set to null in the end?
Because I often have a local unit in my high frequency callback function for e.g. detecting units around a missile and do s.th. like this.
JASS:
private function Callback takes nothing returns boolean
local unit check
call GroupEnumUnitsInRange(GROUP,x,y,AOE,Filter(function Filterblabla))
loop
set check=FirstOfGroup(GROUP)
exitwhen check==null
call GroupRemoveUnit(GROUP,check)
endloop
endfunction
As I don't assign a unit to the variable when there's no unit around the missile, it does not leak or?