Fixed bug in client for servers without AI support. Updated card ratings.

This commit is contained in:
magenoxx 2011-04-15 17:57:25 +04:00
parent 9f58382d6d
commit b639380f87
2 changed files with 10 additions and 6 deletions

View file

@ -76,7 +76,11 @@ public class TablePlayerPanel extends javax.swing.JPanel {
try {
Integer index = Integer.parseInt(Config.defaultOtherPlayerIndex);
cbPlayerType.setSelectedIndex(index);
} catch (NumberFormatException e) {}
}
catch (NumberFormatException e) {}
catch (IllegalArgumentException iae) {
logger.warning("Wrong parameter for default AI type in config.");
}
}
}