This happens when the class select controller is open while the user is spectating. The best solution is probably to read, check and store the player's team in an object variable when the controller is created, and/or to prevent the controller from staying open when the player switches to spectator.
This happens when the class select controller is open while the user is spectating. The best solution is probably to read, check and store the player's team in an object variable when the controller is created, and/or to prevent the controller from staying open when the player switches to spectator.