Prevent mobile app crashing on startup

This commit is contained in:
drdev
2015-01-16 03:58:13 +00:00
parent 47a3a173b6
commit 72a33daf87
3 changed files with 9 additions and 4 deletions

View File

@@ -147,6 +147,7 @@ public class MatchUtil {
i++;
}
p.getLobbyPlayer().setAvatarIndex(avatarIndex);
p.updateAvatar();
if (p.getController() instanceof PlayerControllerHuman) {
final PlayerControllerHuman humanController = (PlayerControllerHuman) p.getController();