aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_slider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/pet_control/pet_slider.cpp')
-rw-r--r--engines/titanic/pet_control/pet_slider.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_slider.cpp b/engines/titanic/pet_control/pet_slider.cpp
index eb07012f43..9fb173871f 100644
--- a/engines/titanic/pet_control/pet_slider.cpp
+++ b/engines/titanic/pet_control/pet_slider.cpp
@@ -89,7 +89,7 @@ double CPetSlider::getOffsetPixels() const {
if (minVal == maxVal)
return 0.0;
- return _sliderOffset / (maxVal - minVal);
+ return (double)_sliderOffset / (maxVal - minVal);
}
void CPetSlider::setSliderOffset(double offset) {