cppcheck
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user