Commit af10db92 authored by Alexander Semke's avatar Alexander Semke
Browse files

Don't change the active player if the game is already over. This fixes

the crash when the game is over and the dialog with the new, save and
cancel buttons is shown and the user clicks on the cancel button.
parent dbed8818
......@@ -686,7 +686,10 @@ void Manager::sendPendingMove() {
default:
break;
}
changeActivePlayer();
//don't change the active player if the game is already over
if (d->gameStarted)
changeActivePlayer();
}
}
......
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