aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resource.cpp1
-rw-r--r--scumm.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/resource.cpp b/resource.cpp
index 01339bfb2b..3b3b26d324 100644
--- a/resource.cpp
+++ b/resource.cpp
@@ -423,6 +423,7 @@ void Scumm::loadCharset(int no)
memset(_charsetData, 0, sizeof(_charsetData));
+ assert(no < sizeof(_charsetData)/16);
checkRange(_maxCharsets - 1, 1, no, "Loading illegal charset %d");
// ensureResourceLoaded(6, no);
diff --git a/scumm.h b/scumm.h
index d384b6e84e..2e87d9e42b 100644
--- a/scumm.h
+++ b/scumm.h
@@ -1294,7 +1294,7 @@ public:
CharsetRenderer charset;
byte _charsetColor;
uint16 _noSubtitles; // Skip all subtitles?
- byte _charsetData[10][16];
+ byte _charsetData[15][16];
void initCharset(int charset);
void restoreCharsetBg();
int hasCharsetMask(int x, int y, int x2, int y2);