diff options
author | Filippos Karapetis | 2018-12-23 20:44:28 +0200 |
---|---|---|
committer | Filippos Karapetis | 2018-12-23 20:44:28 +0200 |
commit | 424e71cfdc4caa342c0f45e987e31a8768efcadd (patch) | |
tree | 5141fedb5a3794f3cc0307fc1d2db650b1aab7ee /engines/titanic | |
parent | 7c5acdaa4b390198df20afc0c88ff22a87203342 (diff) | |
download | scummvm-rg350-424e71cfdc4caa342c0f45e987e31a8768efcadd.tar.gz scummvm-rg350-424e71cfdc4caa342c0f45e987e31a8768efcadd.tar.bz2 scummvm-rg350-424e71cfdc4caa342c0f45e987e31a8768efcadd.zip |
TITANIC: Silence an MSVC false positive about an uninitialized variable
Diffstat (limited to 'engines/titanic')
-rw-r--r-- | engines/titanic/pet_control/pet_sound.cpp | 6 |
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); |