diff options
author | Willem Jan Palenstijn | 2011-11-27 13:59:10 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-27 14:00:14 +0100 |
commit | 5518721a17e751a2ac6deefe56ef0ce446f184ab (patch) | |
tree | f8e7cefa8d058838336e5297c5b2d20afcc40052 /engines | |
parent | 6a9ab747f9ec97d644787bf8a3415b55ca44c2d1 (diff) | |
download | scummvm-rg350-5518721a17e751a2ac6deefe56ef0ce446f184ab.tar.gz scummvm-rg350-5518721a17e751a2ac6deefe56ef0ce446f184ab.tar.bz2 scummvm-rg350-5518721a17e751a2ac6deefe56ef0ce446f184ab.zip |
TSAGE: Work around some uninitialized use warnings
They were false positives, but easy to work around.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/blue_force/blueforce_scenes3.cpp | 2 | ||||
-rw-r--r-- | engines/tsage/core.cpp | 2 | ||||
-rw-r--r-- | engines/tsage/globals.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/engines/tsage/blue_force/blueforce_scenes3.cpp b/engines/tsage/blue_force/blueforce_scenes3.cpp index 1dea7f7687..a63f45d8df 100644 --- a/engines/tsage/blue_force/blueforce_scenes3.cpp +++ b/engines/tsage/blue_force/blueforce_scenes3.cpp @@ -4350,7 +4350,7 @@ void Scene360::Action1::signal() { void Scene360::synchronize(Serializer &s) { SceneExt::synchronize(s); if (s.getVersion() < 9) { - int tmpVar; + int tmpVar = 0; s.syncAsSint16LE(tmpVar); } } diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index b991e4677b..266d39a907 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -3710,7 +3710,7 @@ int WalkRegions::indexOf(const Common::Point &pt, const Common::List<int> *index void WalkRegions::synchronize(Serializer &s) { // Synchronise the list of disabled regions as a list of values terminated with a '-1' - int regionId; + int regionId = 0; if (s.isLoading()) { _disabledRegions.clear(); diff --git a/engines/tsage/globals.cpp b/engines/tsage/globals.cpp index ad1ae04be2..0b59fd4e36 100644 --- a/engines/tsage/globals.cpp +++ b/engines/tsage/globals.cpp @@ -230,7 +230,7 @@ void BlueForceGlobals::synchronize(Serializer &s) { s.syncAsSint16LE(_dayNumber); if (s.getVersion() < 9) { - int tmpVar; + int tmpVar = 0; s.syncAsSint16LE(tmpVar); } s.syncAsSint16LE(_tonyDialogCtr); |