From 95f890c3508543f3172ba4450211f1e9dba79f23 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 2 Nov 2011 23:04:49 +0000 Subject: CINE: Fix warnings --- engines/cine/saveload.cpp | 2 +- engines/cine/sound.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/cine/saveload.cpp b/engines/cine/saveload.cpp index 0ea1a23e8f..223099a587 100644 --- a/engines/cine/saveload.cpp +++ b/engines/cine/saveload.cpp @@ -1034,7 +1034,7 @@ void loadResourcesFromSave(Common::SeekableReadStream &fHandle, enum CineSaveGam } // Alright, the animation entry looks to be valid so let's start handling it... - if (strcmp(currentPartName, name)) { + if (strcmp(currentPartName, name) != 0) { closePart(); loadPart(name); } diff --git a/engines/cine/sound.cpp b/engines/cine/sound.cpp index 0c3541fae7..48c5e3d0a5 100644 --- a/engines/cine/sound.cpp +++ b/engines/cine/sound.cpp @@ -602,7 +602,7 @@ bool PCSoundFxPlayer::load(const char *song) { memcpy(instrument, _sfxData + 20 + i * 30, 12); instrument[63] = '\0'; - if (strlen(instrument) != 0) { + if (instrument[0] != '\0') { char *dot = strrchr(instrument, '.'); if (dot) { *dot = '\0'; -- cgit v1.2.3