• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Does this leak in memory?

Status
Not open for further replies.
Level 11
Joined
Aug 1, 2009
Messages
714
I was trying to move a unit without interrupting its order ("THE ORDER IS GIVEN ~ AZIR)...
But one thing bothers my mind.

Does
  • set u = <unit to move>
  • set x = <x-coordinate of the position to move to>
  • set y = <y-coordinate of the position to move to>
  • Custom script: call SetUnitX(udg_u, udg_x)
  • Custom script: call SetUnitY(udg_u, udg_y)
Leaks memory?
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
The lines with "set x" and "set y" is not clear so it is impossible to answer the question.

set x = 1259 --> doesn't leak

set x = (another x coordinate) + (some number) --> doesn't leak

set x = X of (target point of ability being cast) --> leaks

set x = X of (Position of (Triggering unit)) --> leaks
 
Status
Not open for further replies.
Top