diff --git a/src/ui/qt/gamecontroller.cpp b/src/ui/qt/gamecontroller.cpp index dfa0d4fe..55599128 100644 --- a/src/ui/qt/gamecontroller.cpp +++ b/src/ui/qt/gamecontroller.cpp @@ -1423,7 +1423,9 @@ inline std::string GameController::char_to_string(char ch) void GameController::appendGameOverReasonToCmdlist() { - assert(position.phase == PHASE_GAMEOVER); + if (position.phase != PHASE_GAMEOVER) { + return; + } char cmdline[64] = { 0 }; switch (position.gameoverReason) {