aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resource.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/resource.cpp b/resource.cpp
index 274a27629c..438f90e887 100644
--- a/resource.cpp
+++ b/resource.cpp
@@ -399,6 +399,8 @@ void Scumm::loadCharset(int no) {
byte *ptr;
debug(9, "loadCharset(%d)",no);
+
+ memset(_charsetData, 0, sizeof(_charsetData));
checkRange(_maxCharsets-1, 1, no, "Loading illegal charset %d");