Add missing early return
This commit is contained in:
@@ -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