Quick question about leaks.

Status
Not open for further replies.
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:
https://www.hiveworkshop.com/forums...quick-tutorial-common-triggering-tips-190802/
 
Status
Not open for further replies.
Back
Top