aboutsummaryrefslogtreecommitdiff
path: root/engines/sword2
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-13 18:12:17 +0000
committerJohannes Schickel2009-05-13 18:12:17 +0000
commitf0182121f79685063edb50c9647e4f6f40bd0ba6 (patch)
tree482cd6fbe9b6a8fae81a72b9c3fc03961a9eda45 /engines/sword2
parentb9ac179b2e601f761cc60d431a3e5428f3740935 (diff)
downloadscummvm-rg350-f0182121f79685063edb50c9647e4f6f40bd0ba6.tar.gz
scummvm-rg350-f0182121f79685063edb50c9647e4f6f40bd0ba6.tar.bz2
scummvm-rg350-f0182121f79685063edb50c9647e4f6f40bd0ba6.zip
Fix some variable may be used uninitialized warnings.
svn-id: r40528
Diffstat (limited to 'engines/sword2')
-rw-r--r--engines/sword2/screen.cpp1
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());