Add missing early return
This commit is contained in:
1 parent
1311897416
commit
6215fef385
1 file changed
+1
@@ -219,6 +219,7 @@ impl Room {
|
|||||||
if diff.is_empty() {
|
if diff.is_empty() {
|
||||||
self.successive_skipped_turns += 1;
|
self.successive_skipped_turns += 1;
|
||||||
self.next_player();
|
self.next_player();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if !Board::has_alignment(&diff) || !self.board.is_unique_chain(&diff) {
|
if !Board::has_alignment(&diff) || !self.board.is_unique_chain(&diff) {
|
||||||
self.reset_player_moves();
|
self.reset_player_moves();
|
||||||
|
|||||||
Reference in new issue
Block a user