diff options
Diffstat (limited to 'include/pv.c')
| -rw-r--r-- | include/pv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pv.c b/include/pv.c index 94c00d1..fb5f181 100644 --- a/include/pv.c +++ b/include/pv.c @@ -44,7 +44,7 @@ void pv_capture_leaf(pv_leaf_t *leaf, tak_state_p state, nn_cell_idxs(leaf->cells, state); for (uint8_t loc = n_cells; loc < PV_MAX_CELLS; loc++) leaf->cells[loc] = 0; - leaf->current_colour = (uint8_t)state->current_colour; + leaf->parity_sign = (state->ply & 1) ? 1.0f : -1.0f; leaf->terminal = (uint8_t)(winner < 0xFF); leaf->terminal_value = leaf->terminal ? terminal_value(winner) : 0.0f; } |
