diff --git a/src/editor/mainwindow.cpp b/src/editor/mainwindow.cpp index 13f9974..6cd50c5 100644 --- a/src/editor/mainwindow.cpp +++ b/src/editor/mainwindow.cpp @@ -820,6 +820,13 @@ void MainWindow::showIncludedFiles() void MainWindow::runGame() { + if (m_project.rooms.empty()) + { + QMessageBox::information(this, tr("No room to play"), + tr("Create a room before running the game.")); + return; + } + GameEngine engine{m_project}; setEnabled(false);