diff options
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r-- | engines/titanic/pet_control/pet_slider.h | 1 | ||||
-rw-r--r-- | engines/titanic/pet_control/pet_text.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_slider.h b/engines/titanic/pet_control/pet_slider.h index 93390a5d59..0bc9e825cd 100644 --- a/engines/titanic/pet_control/pet_slider.h +++ b/engines/titanic/pet_control/pet_slider.h @@ -80,6 +80,7 @@ protected: bool containsPt(const Point &pt) const { return _bounds.contains(pt); } public: CPetSlider(); + virtual ~CPetSlider() {} /** * Setup the background diff --git a/engines/titanic/pet_control/pet_text.cpp b/engines/titanic/pet_control/pet_text.cpp index a8d9ba6eb5..f87b037109 100644 --- a/engines/titanic/pet_control/pet_text.cpp +++ b/engines/titanic/pet_control/pet_text.cpp @@ -404,7 +404,7 @@ bool CPetText::handleKey(char c) { return true; default: - if (c >= 32 && c <= 127) + if ((byte)c >= 32 && (byte)c <= 127) appendText(CString(c, 1)); break; } |