SHERLOCK: Fix Coverity warnings

This commit is contained in:
Paul Gilbert
2015-09-10 20:48:40 -04:00
parent 1b60e55fe8
commit 61bb7cc8ed
3 changed files with 8 additions and 3 deletions
+4
View File
@@ -1229,6 +1229,8 @@ void ScalpelEngine::showScummVMSaveDialog() {
saveGameState(slot, desc);
}
delete dialog;
}
void ScalpelEngine::showScummVMRestoreDialog() {
@@ -1238,6 +1240,8 @@ void ScalpelEngine::showScummVMRestoreDialog() {
if (slot >= 0) {
loadGameState(slot);
}
delete dialog;
}
bool ScalpelEngine::play3doMovie(const Common::String &filename, const Common::Point &pos, bool halfSize) {
+1
View File
@@ -423,6 +423,7 @@ Logo::Logo(ScalpelEngine *vm) : _vm(vm), _lib("sf3.rlb") {
// Initialize counter
_counter = 0;
_frameCounter = 0;
// Initialize wait frame counters
_waitFrames = 0;
+3 -3
View File
@@ -909,13 +909,13 @@ int TattooJournal::getFindName(bool printError) {
if (events._released || events._rightReleased) {
switch (_selector) {
case SB_CANCEL:
case (int)SB_CANCEL:
done = -1;
break;
case SB_BACKWARDS:
case (int)SB_BACKWARDS:
done = 2;
break;
case SB_FORWARDS:
case (int)SB_FORWARDS:
done = 1;
break;
default: