diff options
-rw-r--r-- | scumm/resource.cpp | 2 | ||||
-rw-r--r-- | scumm/scummvm.cpp | 2 |
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); |