• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

repeating position

Status
Not open for further replies.
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
 
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.
Back
Top