• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Does special effect on unit leak?

Status
Not open for further replies.
Level 5
Joined
Oct 24, 2007
Messages
90
I was just curious. Does this leak?

  • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Weapons\Bolt\BoltImpact.mdl
  • Special Effect - Destroy (Last created special effect)
If it does, I'll avoid using that trigger in the map I'm making.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,199
The code provided does not leak. The index will not be recycled however until you make another effect due to the global holding its value (that is if the GUI functions do not preform a local handle leak in which case the index is permantly leaked but vexorians optimizer fixes this).
 
Status
Not open for further replies.
Top