diff options
author | David Turner | 2010-11-17 19:29:07 +0000 |
---|---|---|
committer | David Turner | 2010-11-17 19:29:07 +0000 |
commit | 84a753d8409ba0dc9323b135bf730bff5dd39aa3 (patch) | |
tree | 41b962e206122aec6fdb59147cfc704f97016f4d | |
parent | 61e02f0570a90c8691459bcdf348ebdd1bbcbf3f (diff) | |
download | scummvm-rg350-84a753d8409ba0dc9323b135bf730bff5dd39aa3.tar.gz scummvm-rg350-84a753d8409ba0dc9323b135bf730bff5dd39aa3.tar.bz2 scummvm-rg350-84a753d8409ba0dc9323b135bf730bff5dd39aa3.zip |
CRUISE: Corrected uninit read of _polyStruct in ctp.cpp:49 detected by Valgrind.
This occurred during intro playback and was due to _polyStruct not being initialised to NULL during engine construction/initialisation.
svn-id: r54299
-rw-r--r-- | engines/cruise/cruise.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/cruise.cpp b/engines/cruise/cruise.cpp index 3af77f3ef3..8cc45202e7 100644 --- a/engines/cruise/cruise.cpp +++ b/engines/cruise/cruise.cpp @@ -101,7 +101,6 @@ Common::Error CruiseEngine::run() { Cruise::changeCursor(Cruise::CURSOR_NORMAL); CursorMan.showMouse(true); - lastTick = 0; lastTickDebug = 0; @@ -130,6 +129,7 @@ void CruiseEngine::initialize() { // another bit of video init readVolCnf(); + _vm->_polyStruct = NULL; } void CruiseEngine::deinitialise() { |