- Joined
- Apr 6, 2008
- Messages
- 760
im petty sure it do but ill ask just to be sure
do this leak?
and the "caller"
its a bitch since a cant
do this leak?
JASS:
function MPick_Conds takes nothing returns boolean
local timer Mtimer
local unit c
set Mtimer = GetExpiredTimer()
set c = GetHandleUnit(Mtimer,"c")
return GetWidgetLife(GetFilterUnit()) > .405 and not IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE) and IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(c))
endfunction
and the "caller"
JASS:
call GroupEnumUnitsInRange(g,nx,ny,300,Filter(function MPick_Conds))
its a bitch since a cant
JASS:
set c = null
Last edited: