| 09-10-2006, 07:48 AM | #1 |
If i, lets say, creates a floating text above a unit, using the units position to create the text, does this provides location leaks? If it do, what will i have to do? Set a point variable, then remove it like this? Trigger: Custom script: call RemoveLocation(udg_MyLoc)Trigger: Custom script: call RemoveLocation(LastCreatedLocation)EDIT: Why i am asking, its just i have noticed some of my spell stuff to have location leaks, and it would have ben torture just to change everything and set variables. |
| 09-10-2006, 08:23 AM | #2 |
It will be torture, then. Because that's the only way to do it (except using co-ordinates to start off which, or re-using locations if they always happen in the same place). If a created location isn't set to a variable, it will leak. |
| 09-10-2006, 09:03 AM | #3 |
Damn, cause I have about 50 in one spell (it is a loop, so it wont be that bad to change), but i have to rewrite 50% of the triggers, and they are big. Thanks anyways... |
