aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/resource.cpp2
-rw-r--r--scumm/scummvm.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp
index 073d0f47eb..adfca29156 100644
--- a/scumm/resource.cpp
+++ b/scumm/resource.cpp
@@ -450,8 +450,6 @@ void Scumm::loadCharset(int no)
if (_gameId == GID_INDY4 && no == 0)
no = 1;
- memset(_charsetData, 0, sizeof(_charsetData));
-
assert(no < (int)sizeof(_charsetData) / 16);
checkRange(_maxCharsets - 1, 1, no, "Loading illegal charset %d");
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index f7a1adbd7f..9e3c5343dc 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -206,6 +206,8 @@ void Scumm::scummInit()
else
_resourceHeaderSize = 8;
+ memset(_charsetData, 0, sizeof(_charsetData));
+
if (!(_features & GF_SMALL_NAMES))
loadCharset(1);