CINE: Fix warnings

This commit is contained in:
Eugene Sandulenko 2011-11-02 23:04:49 +00:00
parent 0e1affcc97
commit 95f890c350
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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';