diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 9c42a635..55e4f77c 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -7177,7 +7177,7 @@ static void returntoeditor_callback(void) void Game::quittomenu(void) { #if !defined(NO_CUSTOM_LEVELS) && !defined(NO_EDITOR) - if (map.custommode && !map.custommodeforreal) + if (gamestate != EDITORMODE && map.custommode && !map.custommodeforreal) { /* We are playtesting! Go back to the editor * instead of losing unsaved changes. */