TriggerRegisterLeaveRectSimple
- Parameters
-
trig trigger
r rect
- comment
- bug
Leaks handle
rectRegion
: 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.00
- Source
- Blizzard.j
- return type
event
- Source code
function TriggerRegisterLeaveRectSimple takes trigger trig, rect r returns event local region rectRegion = CreateRegion() call RegionAddRect(rectRegion, r) return TriggerRegisterLeaveRegion(trig, rectRegion, null) endfunction