• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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