Skip to content

Commit 4773eea

Browse files
committed
fix(weight): weighted button was not working after clearing the board that had an edge
1 parent 669a6f1 commit 4773eea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/board.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void Board::clear() {
3030

3131
graph.resize(MAX_NODES);
3232
nodes.assign(MAX_NODES, Node::makeInvalidNode());
33+
edges = 0;
3334
}
3435

3536
Node* Board::findNodeFromPosition(const Vector2& firstNodePosition) {

0 commit comments

Comments
 (0)