CINE: Fix warnings
This commit is contained in:
parent
0e1affcc97
commit
95f890c350
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue