aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2018-12-23 20:44:28 +0200
committerFilippos Karapetis2018-12-23 20:44:28 +0200
commit424e71cfdc4caa342c0f45e987e31a8768efcadd (patch)
tree5141fedb5a3794f3cc0307fc1d2db650b1aab7ee
parent7c5acdaa4b390198df20afc0c88ff22a87203342 (diff)
downloadscummvm-rg350-424e71cfdc4caa342c0f45e987e31a8768efcadd.tar.gz
scummvm-rg350-424e71cfdc4caa342c0f45e987e31a8768efcadd.tar.bz2
scummvm-rg350-424e71cfdc4caa342c0f45e987e31a8768efcadd.zip
TITANIC: Silence an MSVC false positive about an uninitialized variable
-rw-r--r--engines/titanic/pet_control/pet_sound.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/titanic/pet_control/pet_sound.cpp b/engines/titanic/pet_control/pet_sound.cpp
index c2c9110b03..6e88d7d35d 100644
--- a/engines/titanic/pet_control/pet_sound.cpp
+++ b/engines/titanic/pet_control/pet_sound.cpp
@@ -202,9 +202,9 @@ bool CPetSound::MouseButtonDownMsg(const Point &pt) {
CPetSlider *sliders[4] = { &_masterVolume, &_musicVolume, &_parrotVolume, &_speechVolume };
for (int idx = MASTER_SLIDER; idx <= SPEECH_SLIDER; ++idx) {
CPetSlider *slider = sliders[idx];
- bool isLeft = rectLeft.contains(pt);
- bool isRight = rectRight.contains(pt);
- double offset;
+ const bool isLeft = rectLeft.contains(pt);
+ const bool isRight = rectRight.contains(pt);
+ double offset = 0.0;
if (isLeft) {
slider->stepPosition(-1);