aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Fry2018-04-29 00:15:43 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit6ae95550864e126f3e8634183f32ac831ace5d5f (patch)
treeeeb1f895818d68e4b18b02cdb5db3c6416882c7d
parent28b0acc6c22efcb7c7cad6514c706e6b81e979d9 (diff)
downloadscummvm-rg350-6ae95550864e126f3e8634183f32ac831ace5d5f.tar.gz
scummvm-rg350-6ae95550864e126f3e8634183f32ac831ace5d5f.tar.bz2
scummvm-rg350-6ae95550864e126f3e8634183f32ac831ace5d5f.zip
ILLUSIONS: Fix valgrind warnings about usage of uninitialised variables
-rw-r--r--engines/illusions/illusions.cpp1
-rw-r--r--engines/illusions/illusions.h2
-rw-r--r--engines/illusions/updatefunctions.cpp1
3 files changed, 3 insertions, 1 deletions
diff --git a/engines/illusions/illusions.cpp b/engines/illusions/illusions.cpp
index 9bb40c344c..79570012c0 100644
--- a/engines/illusions/illusions.cpp
+++ b/engines/illusions/illusions.cpp
@@ -70,6 +70,7 @@ IllusionsEngine::IllusionsEngine(OSystem *syst, const IllusionsGameDescription *
_resumeFromSavegameRequested = false;
_savegameSceneId = 0;
_savegameThreadId = 0;
+ _nextTempThreadId = 0;
Engine::syncSoundSettings();
diff --git a/engines/illusions/illusions.h b/engines/illusions/illusions.h
index 7154467873..ac6ff3b82a 100644
--- a/engines/illusions/illusions.h
+++ b/engines/illusions/illusions.h
@@ -109,7 +109,7 @@ public:
void updateEvents();
Screen *_screen;
- ScreenPaletteBase *_screenPalette;
+ ScreenPaletteBase *_screenPalette;
ScreenText *_screenText;
Input *_input;
ActorInstanceList *_actorInstances;
diff --git a/engines/illusions/updatefunctions.cpp b/engines/illusions/updatefunctions.cpp
index 86aaf55048..7317508249 100644
--- a/engines/illusions/updatefunctions.cpp
+++ b/engines/illusions/updatefunctions.cpp
@@ -30,6 +30,7 @@ namespace Illusions {
// UpdateFunctions
UpdateFunctions::UpdateFunctions() {
+ _lastTimerUpdateTime = 0;
}
UpdateFunctions::~UpdateFunctions() {