Crash fix

This commit is contained in:
Anuken
2023-12-10 21:55:21 -05:00
parent 1eb70404d7
commit eeefdd8054
3 changed files with 8 additions and 3 deletions

View File

@@ -214,7 +214,10 @@ public class Units{
}
});
return buildResult;
var result = buildResult;
buildResult = null;
return result;
}
/** Iterates through all buildings in a range. */

View File

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