aboutsummaryrefslogtreecommitdiff
path: root/scumm/resource.cpp
diff options
context:
space:
mode:
authorMax Horn2002-12-04 15:00:35 +0000
committerMax Horn2002-12-04 15:00:35 +0000
commit77a64e021781bcd823e554af9a9aed708f1e2be9 (patch)
tree876372f82c5568290a4be485ac0a2769c2223bd4 /scumm/resource.cpp
parentbb2d559d13be7f985b60495eded3ff6f5bb5c405 (diff)
downloadscummvm-rg350-77a64e021781bcd823e554af9a9aed708f1e2be9.tar.gz
scummvm-rg350-77a64e021781bcd823e554af9a9aed708f1e2be9.tar.bz2
scummvm-rg350-77a64e021781bcd823e554af9a9aed708f1e2be9.zip
more cleanup; fixes out of bound access to _charsetData (but I am not sure if that will be visible anywhere
svn-id: r5833
Diffstat (limited to 'scumm/resource.cpp')
-rw-r--r--scumm/resource.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index 24cf0df85d..a2630fbf09 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -455,6 +455,8 @@ void Scumm::loadCharset(int no)
// ensureResourceLoaded(rtCharset, no);
ptr = getResourceAddress(rtCharset, no);
+ if (_features & GF_SMALL_HEADER)
+ ptr -= 12;
for (i = 0; i < 15; i++) {
_charsetData[no][i + 1] = ptr[i + 14];