• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[JASS] Local timers

Status
Not open for further replies.
Level 7
Joined
Jul 20, 2008
Messages
377
I've seen a few posts here and there saying that it's bad to null local timers. At the same time, other posts are saying it's fine. Can anyone explain this to me?
 
Level 14
Joined
Nov 20, 2005
Messages
1,156
We...don't really know. Seems to be related to issues with handle stack corruption, so we avoided it, although it could just be a catalyst.

Just don't null and use a timer recycling system instead, like TimerUtils (over at WC3C, by Vexorian). Since timers are never destroyed, only reused, there is no need to null them, as the handle index never needs to get freed.
 
Status
Not open for further replies.
Top