This commit is contained in:
Anuken
2020-07-18 22:50:05 -04:00
parent 870f06218b
commit c772e1fcc6
5 changed files with 13 additions and 6 deletions

View File

@@ -266,10 +266,10 @@ public class TypeIO{
//no real unit controller state is written, only the type
if(control instanceof Player){
write.b(0);
write.i(((Player)control).id());
write.i(((Player)control).id);
}else if(control instanceof FormationAI){
write.b(1);
write.i(((FormationAI)control).leader.id());
write.i(((FormationAI)control).leader.id);
}else{
write.b(2);
}