diff options
| author | tslil <tslil@posteo.de> | 2026-09-20 08:28:09 +0100 |
|---|---|---|
| committer | tslil <tslil@posteo.de> | 2026-09-20 08:29:22 +0100 |
| commit | 6a2197328065fe38ac62d9e76e3e943fd297e73c (patch) | |
| tree | cac839be5aadeeadb8ae2b383dc5992738652ab5 /include/tak.c | |
| parent | 9f5f953a95c8617cd2fdd24f7402af632c1b07c2 (diff) | |
try combining loops
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; } } |
