pedantic checks

svn-id: r7177
This commit is contained in:
Max Horn 2003-04-28 13:16:37 +00:00
parent dc7446f469
commit e13e117976
2 changed files with 4 additions and 2 deletions

View File

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

View File

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