| 12-26-2006, 09:30 PM | #1 |
Does GetPlayerStartLocationLoc(p) Leaks? i think it shouldnt since player start location is stored in a variable when game starts, im asking because im trying to avoid using locals to clear the leaks (if i do my function wil be 2 times bigger :P) Thanks |
| 12-26-2006, 09:40 PM | #2 |
JASS:constant native GetStartLocationLoc takes integer whichStartLocation returns location native GetPlayerStartLocation takes player whichPlayer returns integer function GetPlayerStartLocationLoc takes player whichPlayer returns location return GetStartLocationLoc(GetPlayerStartLocation(whichPlayer)) endfunction From looking at all the functions, it doesn't return a variable so my guess is you have to remove the location. |
