Skip to content

Commit

Permalink
CINE: Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Nov 2, 2011
1 parent 0e1affc commit 95f890c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/cine/saveload.cpp
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion engines/cine/sound.cpp
Expand Up @@ -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';
Expand Down

0 comments on commit 95f890c

Please sign in to comment.