diff options
Diffstat (limited to 'include/tak.c')
| -rw-r--r-- | include/tak.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tak.c b/include/tak.c index f31d4a9..727ee64 100644 --- a/include/tak.c +++ b/include/tak.c @@ -53,7 +53,7 @@ void reset_state(tak_state_p state, const uint8_t new_board_size) { state->current_colour = C_BLACK; state->hash = 0; // empty board, ply 0 - for (uint8_t k = 0; k < NUM_SQUARES(new_board_size); k++) { + for (uint8_t k = 0; k < NUM_SQUARES(state->board_size); k++) { state->celldat[k] = 0; } } |
