aboutsummaryrefslogtreecommitdiff
path: root/v4
diff options
context:
space:
mode:
Diffstat (limited to 'v4')
-rw-r--r--v4/resource_v4.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/v4/resource_v4.cpp b/v4/resource_v4.cpp
index f4d41895d5..d2e63e8221 100644
--- a/v4/resource_v4.cpp
+++ b/v4/resource_v4.cpp
@@ -26,6 +26,8 @@
void Scumm_v4::loadCharset(int no) {
uint32 size;
+ memset(_charsetData, 0, sizeof(_charsetData));
+
checkRange(4 ,0 ,no , "Loading illegal charset %d");
openRoom(-1);