Skip to content

Commit

Permalink
Fix typo in variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
dark committed Feb 3, 2024
1 parent 82009b8 commit 697d8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_random.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ std::optional<Board> create_random_board(const uint16_t board_size, std::mt19937
}

// Are we done?
if (state.row == board_size - 1 && state.row == board_size - 1) {
if (state.row == board_size - 1 && state.column == board_size - 1) {
// Yes, do a last sanity check and return the generated board.
if (!b.is_valid()) {
std::cerr << "FATAL: failed to vaidate a randomly generated a board. This should never happen." << std::endl;
Expand Down

0 comments on commit 697d8de

Please sign in to comment.