• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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,206
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