This commit is contained in:
2026-04-18 07:48:05 +02:00
parent 20b9a95619
commit 34a41ad25c
22 changed files with 97 additions and 79 deletions

View File

@@ -860,11 +860,13 @@ void Title::iterate() {
demoGame->iterate();
if (demoGame->hasFinished()) {
bool wasQuit = (section->name == SECTION_PROG_QUIT);
// cppcheck-suppress knownConditionTrueFalse
const bool wasQuit = (section->name == SECTION_PROG_QUIT);
delete demoGame;
demoGame = nullptr;
demoGameActive = false;
// cppcheck-suppress knownConditionTrueFalse
if (wasQuit) {
section->name = SECTION_PROG_QUIT;
} else if (demoThenInstructions) {