I know memory leaks occur when actions are called, but do they also occur when conditions are checked?
For example, if I put a condition on a trigger that checks the number of units owned by the owner of a particular unit, would this condition leak.
I know using unit groups in actions leak unless the group is set to a variable, so I was wondering if this applies to conditions too, and if the condition would need to reference a prexisting variable set to number of units owned by owner of the unit.
This would apply to a trigger that is called often, so if it does leak, its important that I know.
Sorry, I'd copy exact code by editor is closed and my comp is running slow.
For example, if I put a condition on a trigger that checks the number of units owned by the owner of a particular unit, would this condition leak.
I know using unit groups in actions leak unless the group is set to a variable, so I was wondering if this applies to conditions too, and if the condition would need to reference a prexisting variable set to number of units owned by owner of the unit.
This would apply to a trigger that is called often, so if it does leak, its important that I know.
Sorry, I'd copy exact code by editor is closed and my comp is running slow.