Fixed NPE in TrickCardGameManagerDelegate, changed comment.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3497 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2005-04-16 03:41:08 +00:00
parent 4266c72977
commit d93c26f158
2 changed files with 3 additions and 3 deletions
@@ -338,7 +338,7 @@ public class TrickCardGameManagerDelegate extends TurnGameManagerDelegate
protected void verifyPlayersTurn (Name username)
throws InvocationException
{
if (!_trickCardGame.getTurnHolder().equals(username)) {
if (!username.equals(_trickCardGame.getTurnHolder()) {
throw new InvocationException("m.not_your_turn");
}
}
@@ -81,9 +81,9 @@ public class TrickCardGameUtil
*/
public static int getNextInClockwiseSequence (int pidx)
{
// 0
// 3 1
// 2
// 1 3
// 0
return (pidx + 1) & 3;
}