mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
pedantic checks
svn-id: r7177
This commit is contained in:
parent
dc7446f469
commit
e13e117976
@ -433,7 +433,7 @@ bool ScummDebugger::Cmd_ImportRes(int argc, const char** argv) {
|
||||
uint32 size;
|
||||
int resnum;
|
||||
|
||||
if (argc < 3) {
|
||||
if (argc != 3) {
|
||||
Debug_Printf("Syntax: importres <restype> <filename> <resnum>\n");
|
||||
return true;
|
||||
}
|
||||
|
@ -1236,7 +1236,9 @@ void Scumm::nukeResource(int type, int idx) {
|
||||
}
|
||||
|
||||
byte *Scumm::findResourceData(uint32 tag, byte *ptr) {
|
||||
if (_features & GF_SMALL_HEADER)
|
||||
if (_features & GF_OLD_BUNDLE)
|
||||
error("findResourceData must not be used in GF_OLD_BUNDLE games");
|
||||
else if (_features & GF_SMALL_HEADER)
|
||||
ptr = findResourceSmall(tag, ptr, 0);
|
||||
else
|
||||
ptr = findResource(tag, ptr, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user