[Scummvm-cvs-logs] CVS: scummvm/scumm resource.cpp,1.244,1.245
Travis Howell
kirben at users.sourceforge.net
Mon Aug 23 04:45:06 CEST 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20280/scumm
Modified Files:
resource.cpp
Log Message:
Adjust max resource type
Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/resource.cpp,v
retrieving revision 1.244
retrieving revision 1.245
diff -u -d -r1.244 -r1.245
--- resource.cpp 23 Aug 2004 11:28:28 -0000 1.244
+++ resource.cpp 23 Aug 2004 11:44:29 -0000 1.245
@@ -2020,7 +2020,7 @@
}
bool ScummEngine::validateResource(const char *str, int type, int idx) const {
- if (type < rtFirst || type > rtLast || (uint) idx >= (uint) res.num[type]) {
+ if (type < rtFirst || type > 19 || (uint) idx >= (uint) res.num[type]) {
warning("%s Illegal Glob type %s (%d) num %d", str, resTypeFromId(type), type, idx);
return false;
}
More information about the Scummvm-git-logs
mailing list