| 02-07-2006, 04:06 PM | #2 |
Firstly, any creation of a unit group, player group, position, and a few others, will leak. This includes in conditions. Secondly, variables leak. They are not actually overwritten, but the data remains in the computer, just the variable is re-directed to the new variable setting. This can be gotten around by setting the unit group to a variable (TempGroup for any ones that are only for an instant), carrying out the action/condition (using if/then/else), and then destroying the variable, before you set the variable to something else. You need to use custom code or JASS to destroy variables, but a good tutorial can be found in the tutorial section. |
