diff options
author | Travis Howell | 2004-08-23 11:44:29 +0000 |
---|---|---|
committer | Travis Howell | 2004-08-23 11:44:29 +0000 |
commit | dd20c05db57129ef59b433170746b16815d12f93 (patch) | |
tree | 233bd46195e68d4083f6a5d5f4e0da7221ef3389 | |
parent | f362bad6469e81e8dfc6fa7cadac1d4bf0f017c0 (diff) | |
download | scummvm-rg350-dd20c05db57129ef59b433170746b16815d12f93.tar.gz scummvm-rg350-dd20c05db57129ef59b433170746b16815d12f93.tar.bz2 scummvm-rg350-dd20c05db57129ef59b433170746b16815d12f93.zip |
Adjust max resource type
svn-id: r14716
-rw-r--r-- | scumm/resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index f665625522..00d1f2a1cb 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -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; } |