aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorDavid Turner2011-01-30 14:41:27 +0000
committerDavid Turner2011-01-30 14:41:27 +0000
commit7d5dcc2a0a97e902c6ef68bd98c5045ba1ca8131 (patch)
treecb62c69c91c103d85688696414c4cf9f53b05ba3 /engines
parent0b69b6a842b3527a6ad73f99d6840d7b7c05b4bf (diff)
downloadscummvm-rg350-7d5dcc2a0a97e902c6ef68bd98c5045ba1ca8131.tar.gz
scummvm-rg350-7d5dcc2a0a97e902c6ef68bd98c5045ba1ca8131.tar.bz2
scummvm-rg350-7d5dcc2a0a97e902c6ef68bd98c5045ba1ca8131.zip
SWORD1: Fix possible uninitialized memory read in Screen object.
This was detected during playtest with Valgrind during Act 5 (Spain). svn-id: r55658
Diffstat (limited to 'engines')
-rw-r--r--engines/sword1/screen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sword1/screen.cpp b/engines/sword1/screen.cpp
index 9fa808d561..d31396aa2b 100644
--- a/engines/sword1/screen.cpp
+++ b/engines/sword1/screen.cpp
@@ -55,6 +55,8 @@ Screen::Screen(OSystem *system, ResMan *pResMan, ObjectMan *pObjMan) {
_updatePalette = false;
_psxCache.decodedBackground = NULL;
_psxCache.extPlxCache = NULL;
+ _oldScrollX = 0;
+ _oldScrollY = 0;
}
Screen::~Screen() {