- Joined
- Nov 25, 2008
- Messages
- 1,309
JASS:
function KillTriggerUnit takes nothing returns nothing
local unit U=GetTriggerUnit()
call KillUnit(U)
set U=null
endfunction
unit U
to null
at the end of the function? I'm pretty sure I do. Also, do I even have to have the local variable or will only using call KillUnit(GetTriggerUnit())
work as well without leaking?This function is used in a trigger's condition if it matters.