aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control
diff options
context:
space:
mode:
authorPaul Gilbert2017-08-11 21:37:34 -0400
committerPaul Gilbert2017-08-11 21:37:34 -0400
commit5d9da668d418868bba8b9a6ddf5d2f7748f5cc59 (patch)
tree061616aa018e7b684525f68afe90fbc337047d15 /engines/titanic/pet_control
parent20a3a08a905a51d4d38809bf9c8a4a48cb5884cd (diff)
downloadscummvm-rg350-5d9da668d418868bba8b9a6ddf5d2f7748f5cc59.tar.gz
scummvm-rg350-5d9da668d418868bba8b9a6ddf5d2f7748f5cc59.tar.bz2
scummvm-rg350-5d9da668d418868bba8b9a6ddf5d2f7748f5cc59.zip
TITANIC: Fix highlighting PET tab icons during load or Deskbot conv
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r--engines/titanic/pet_control/pet_frame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_frame.cpp b/engines/titanic/pet_control/pet_frame.cpp
index ffc2c7b1f6..9088cfe126 100644
--- a/engines/titanic/pet_control/pet_frame.cpp
+++ b/engines/titanic/pet_control/pet_frame.cpp
@@ -128,7 +128,7 @@ bool CPetFrame::setPetControl(CPetControl *petControl) {
_modeButtons[idx].setBounds(r);
_modeButtons[idx].translate(4, g_vm->isGerman() ? YLIST_DE[idx] : YLIST_EN[idx]);
}
- _modeButtons[PET_CONVERSATION].setMode(MODE_SELECTED);
+ setArea(PET_CONVERSATION);
const int XLIST_EN[] = { 73, 54, 85, 109, 38, 71 };
for (uint idx = 0; idx < _petAreas.size(); ++idx) {
@@ -143,7 +143,7 @@ bool CPetFrame::setPetControl(CPetControl *petControl) {
void CPetFrame::setArea(PetArea newArea) {
resetArea();
- if ((uint)newArea < (_petAreas.size() - 1))
+ if ((uint)newArea < _petAreas.size())
_modeButtons[_petAreas[newArea]].setMode(MODE_SELECTED);
}