SCUMM: Fix GCC Duplicated Condition Warning

These are flagged by GCC if -Wduplicated-cond is enabled.
This commit is contained in:
D G Turner 2019-10-04 07:58:10 +01:00
parent 4a2cbd94b6
commit ee79aba82d

View File

@ -303,12 +303,15 @@ bool ScummDebugger::Cmd_ImportRes(int argc, const char** argv) {
if (_vm->_game.features & GF_SMALL_HEADER) {
size = file.readUint16LE();
file.seek(-2, SEEK_CUR);
} else if (_vm->_game.features & GF_SMALL_HEADER) { // FIXME: This never was executed
#if 0
// FIXME: This never was executed due to duplicated if condition
} else if (_vm->_game.features & GF_SMALL_HEADER) {
if (_vm->_game.version == 4)
file.seek(8, SEEK_CUR);
size = file.readUint32LE();
file.readUint16LE();
file.seek(-6, SEEK_CUR);
#endif
} else {
file.readUint32BE();
size = file.readUint32BE();