diff options
-rw-r--r-- | resource.cpp | 1 | ||||
-rw-r--r-- | scumm.h | 2 |
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); @@ -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); |