GC retention fixes

This commit is contained in:
Anuken
2023-12-10 20:01:40 -05:00
parent a0f235b430
commit 1eb70404d7
4 changed files with 40 additions and 21 deletions

View File

@@ -183,6 +183,7 @@ abstract class PlayerComp implements UnitController, Entityc, Syncc, Timerc, Dra
if(!unit.isNull()){
clearUnit();
}
lastReadUnit = justSwitchTo = justSwitchFrom = null;
}
public void team(Team team){