From fa4483dc336deafea36768e1e8a804e9d0ae823d Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 17 Feb 2019 00:13:12 +0100 Subject: Bugfix removeEdgeCell --- board.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board.cpp b/board.cpp index b3820a0..91655dc 100644 --- a/board.cpp +++ b/board.cpp @@ -94,7 +94,7 @@ void Board::newEdgeCand(int idx) { void Board::removeEdgeCell(int idx) { // cerr << "(removeEdgeCell(" << Idx(idx) << "))" << endl; int pos = inEdgeCells[idx]; - if (pos != -1) { + if (pos != -1 && (bd[idx] != 0 || !checkEdge(idx))) { inEdgeCells[idx] = -1; if ((unsigned)pos < edgeCells.size() - 1) { int val = edgeCells[pos] = edgeCells.back(); -- cgit v1.2.3-54-g00ecf