[Solved] PointLeaks-Removing Point[array]

Status
Not open for further replies.
Level 5
Joined
Jan 16, 2017
Messages
67
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: 50
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.
Back
Top