Skip to content

Commit

Permalink
Don't clear dead stone counts in calc_scoring_markers_simple
Browse files Browse the repository at this point in the history
These are updated whenever strings of stones are toggled dead/alive, and
thus we must not clear the value when updating the count.
  • Loading branch information
bernds committed Jul 18, 2019
1 parent 9d3ab11 commit 527d483
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/goboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,6 @@ void go_board::calc_scoring_markers_simple ()
{
init_marks (true);

m_dead_w = m_dead_b = 0;
m_score_b = m_score_w = 0;

bit_array w_stones (bitsize ());
Expand Down

0 comments on commit 527d483

Please sign in to comment.