DelayedSuspendDecayStopAnimEnum
- comment
- bug
Leaks handle
enumUnit: 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 DelayedSuspendDecayStopAnimEnum takes nothing returns nothing local unit enumUnit = GetEnumUnit() if (GetUnitState(enumUnit, UNIT_STATE_LIFE) <= 0) then call SetUnitTimeScale(enumUnit, 0.0001) endif endfunction