• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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