From: Erik V. <eri...@hc...> - 2008-10-12 14:30:27
|
No, that is another bug that must have crept in recently. I just discovered it as well, and have fixed it. Not yet committed, though (there is more coming). It should be: public int getCurrentPlayerIndex() { return currentPlayer.getIndex(); } Erik. _____ From: Mark Smith [mailto:mar...@gm...] Sent: Sunday 12 October 2008 14:49 To: Rails Dev Mailing List Subject: [Rails-devel] Infinite Recursion in StockRound.java Down in StockRound, I came across what looks a lot like an Infinite Recursion routine: 1049 /*----- METHODS TO BE CALLED TO SET UP THE NEXT TURN -----*/ 1050 1051 /** 1052 * @return The index of the player that has the turn. 1053 */ 1054 public int getCurrentPlayerIndex() { 1055 return getCurrentPlayerIndex(); 1056 } What is this supposed to do? It does not make sense they way this is. Mark |