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

[Solved] PointLeaks-Removing Point[array]

Status
Not open for further replies.
Level 4
Joined
Jan 16, 2017
Messages
66
Hi,
I do know how to remove leaks of normal point variables, but I never found a solution for point[array]'s.
I tried defining an int variable and just put it in the brackets but it didn't work:

upload_2017-1-24_19-23-55.png

Can someone tell me how it's done? I've pointed a red arrow at my attempt.

thank you
 

Attachments

  • upload_2017-1-24_19-23-43.png
    upload_2017-1-24_19-23-43.png
    4.4 KB · Views: 34
You're forgetting the second udg in front of ScottyArray: call RemoveLocation(udg_Scottypoint[udg_ScottyArray])

Remember that udg stands for user defined global. Any global variable made from the Variable Editor is a udg, so anytime you are working with custom script or JASS, you must always put the udg_ prefix before the name of the variable.
 
Status
Not open for further replies.
Top