• 🏆 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!

Memory Leaks

Status
Not open for further replies.
Level 4
Joined
Oct 23, 2006
Messages
65
Alright, so I'm trying to clean up the memory leaks with my spells, but I'm confused. I thought I needed a different variable for each effect, point, etc. Or can I use one?

For example, in my trigger enhanced spells, I (naturally) often use the target of the spell as a point and I assign that to a variable. Do I need a SpellLocation1 and a SpellLocation2, 3, 4... for each different spell? Or can I recycle SpellLocation in all of my spells?

I hope you know what I mean.
 
Status
Not open for further replies.
Top