Is this (GetOwningPlayer()) a leak? .. actually do all the get functions leaks such as GetEnumUnit()? Im trying to minimise the number of leaks in my AI but i have many triggering events such as
GetPlayerId(GetOwningPlayer(GetEnteringUnit()))
is this a leak because im thinking of creating locals for GetOwningPlayer() and GetEnteringUnit() then destroying them but then having a local created and destroyed everytime a unit enters <-- isnt this more processing?
Also the GetEnumUnit(), does this leak because i have this running for all units in the entire map and all units in each player's base.
GetPlayerId(GetOwningPlayer(GetEnteringUnit()))
is this a leak because im thinking of creating locals for GetOwningPlayer() and GetEnteringUnit() then destroying them but then having a local created and destroyed everytime a unit enters <-- isnt this more processing?
Also the GetEnumUnit(), does this leak because i have this running for all units in the entire map and all units in each player's base.