From: Erik V. <ev...@us...> - 2009-11-25 19:21:40
|
Update of /cvsroot/rails/18xx/rails/ui/swing In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv18672/rails/ui/swing Modified Files: GameStatus.java Log Message: Check for player index <0 Index: GameStatus.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/ui/swing/GameStatus.java,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** GameStatus.java 24 Nov 2009 20:21:48 -0000 1.29 --- GameStatus.java 25 Nov 2009 19:21:31 -0000 1.30 *************** *** 842,845 **** --- 842,846 ---- protected void setPlayerCertButton(int i, int j, boolean clickable, Object o) { + if (j < 0) return; setPlayerCertButton(i, j, clickable); if (clickable && o != null) { *************** *** 850,853 **** --- 851,855 ---- protected void setPlayerCertButton(int i, int j, boolean clickable) { + if (j < 0) return; if (clickable) { certPerPlayerButton[i][j].setText(certPerPlayer[i][j].getText()); |