Adjust max resource type
svn-id: r14716
This commit is contained in:
parent
f362bad646
commit
dd20c05db5
1 changed files with 1 additions and 1 deletions
|
@ -2020,7 +2020,7 @@ byte *ScummEngine::createResource(int type, int idx, uint32 size) {
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue