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

Question about leaks

Status
Not open for further replies.
Level 2
Joined
Sep 3, 2009
Messages
15
I have a question about leaks.
If you set a variable for something like

Set Group = (Units within 500 of (Position Of Picked Unit))

The (Position Of Picked Unit) will leak, but will it leak if i store it within a variable, and then destroy it? I was wondering because the variable is set as a GROUP, not a POINT.

Do i have to set (Position Of Picked Unit) into another variable and then do something like this?

Set Group = (Unit within 500 of (Point))
 
Status
Not open for further replies.
Top