• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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