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

repeating position

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
You have to "call RemoveLocation(udg_Variable)" before setting a new point in the variable, else you replace the value in the varible, but the point handle remains as a leak

The best is turning to JASS and using x/y real locals
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
You have to "call RemoveLocation(udg_Variable)" before setting a new point in the variable, else you replace the value in the varible, but the point handle remains as a leak

The best is turning to JASS and using x/y real locals
His question does using the same variable (Location) leaks every time we use it ? not every time you set it.

As I said, if you repeatedly using the same variable Location, it would not leak, but if you set the same variable location to a same location (yes, even to a same location), it would leak.

There is thin difference between use and set.

So in his case, he's using the same variable Location each time to spawn units, THIS WON'T LEAK as you're using the same variable, not setting it.
 
Status
Not open for further replies.
Top