aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/fs.cpp4
-rw-r--r--engines/testbed/midi.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/testbed/fs.cpp b/engines/testbed/fs.cpp
index e2bedb1898..62ac616192 100644
--- a/engines/testbed/fs.cpp
+++ b/engines/testbed/fs.cpp
@@ -167,7 +167,7 @@ TestExitStatus FStests::testWriteFile() {
return kTestPassed;
}
- return kTestFailed;
+ return kTestFailed;
}
@@ -189,7 +189,7 @@ FSTestSuite::FSTestSuite() {
}
void FSTestSuite::enable(bool flag) {
- Testsuite::enable(ConfParams.isGameDataFound() & flag);
+ Testsuite::enable(ConfParams.isGameDataFound() ? flag : false);
}
} // End of namespace Testbed
diff --git a/engines/testbed/midi.cpp b/engines/testbed/midi.cpp
index 54be866b4c..af5260c826 100644
--- a/engines/testbed/midi.cpp
+++ b/engines/testbed/midi.cpp
@@ -147,7 +147,7 @@ MidiTestSuite::MidiTestSuite() {
}
void MidiTestSuite::enable(bool flag) {
- Testsuite::enable(_isMidiDataFound & flag);
+ Testsuite::enable(_isMidiDataFound ? flag : false);
}
}