mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
SCUMM: Fix GCC Duplicated Condition Warning
These are flagged by GCC if -Wduplicated-cond is enabled.
This commit is contained in:
parent
4a2cbd94b6
commit
ee79aba82d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user