diff options
Diffstat (limited to 'engines/sword2')
-rw-r--r-- | engines/sword2/screen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sword2/screen.cpp b/engines/sword2/screen.cpp index 3a174b2352..6782a0691c 100644 --- a/engines/sword2/screen.cpp +++ b/engines/sword2/screen.cpp @@ -285,6 +285,7 @@ void Screen::buildDisplay() { byte *file = _vm->_resman->openResource(_thisScreen.background_layer_id); MultiScreenHeader screenLayerTable; + memset(&screenLayerTable, 0, sizeof(screenLayerTable)); if (!Sword2Engine::isPsx()) // On PSX version, there would be nothing to read here screenLayerTable.read(file + ResHeader::size()); |