Skip to content

Commit 75fed4f

Browse files
authored
Fix a bug in AbstractGame.next()
AbstractGame.next() would return an incorrect value if it had not already started.
1 parent 08929d4 commit 75fed4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/nmerrill/kothcomm/game/games/AbstractGame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public final boolean next(){
5656
return true;
5757
}
5858
step();
59-
return finished();
59+
return !finished();
6060
}
6161

6262
public abstract boolean finished();

0 commit comments

Comments
 (0)