Commit 8e6c64e4 authored by Denis Kuplyakov's avatar Denis Kuplyakov
Browse files

Fixed last move marker after undo

After undo m_changedChips wasn't cleared, so last move marker was shown
on the empty position. Now after undo m_changedChips simply cleared and
no undo marker is shown.
parent e446c132
......@@ -176,6 +176,8 @@ int KReversiGame::undo()
kDebug() << "Undone" << movesUndone << "moves.";
//kDebug() << "Current player changed to" << (m_curPlayer == White ? "White" : "Black" );
m_changedChips.clear(); // clearing last move mark
emit boardChanged();
return movesUndone;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment