NearbyElevatorExistsEnum
- comment
- bug
Leaks handle
d: 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 (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
function NearbyElevatorExistsEnum takes nothing returns nothing local destructable d = GetEnumDestructable() local integer dType = GetDestructableTypeId(d) if (dType == bj_ELEVATOR_CODE01) or (dType == bj_ELEVATOR_CODE02) then set bj_elevatorNeighbor = d endif endfunction