• 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.

Quick question about leaks.

Status
Not open for further replies.
Level 14
Joined
Apr 20, 2009
Messages
1,543
So it will leak if i
  • Set CasterPosition = (Position of Caster)
  • Set CasterPosition_second = CasterPosition
or if i create a unit for example, right?

Basically: here you have 2 refferences to the same object in memory.
CasterPosition = (Position of Caster) and
CasterPosition_second = (Position of Caster)

I don't know why one would want to do this since you can use the first one, but still. It won't cause leaks if destroyed afterwards.

If you're creating the unit without using the refferenced location and destroying it afterwards then it will leak.

Here is a tutorial on leaks:
http://www.hiveworkshop.com/forums/...quick-tutorial-common-triggering-tips-190802/
 
Status
Not open for further replies.
Top