aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_load_save.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-27 20:11:40 -0400
committerPaul Gilbert2016-07-10 16:12:10 -0400
commit2675580208561c8c8bd9d6908a202006ddf195b7 (patch)
treee71b0ba92c0b0c40da046dee5b6a7eb42c349882 /engines/titanic/pet_control/pet_load_save.cpp
parent74e40be66e231a8eada9bc045828e17f044a7c55 (diff)
downloadscummvm-rg350-2675580208561c8c8bd9d6908a202006ddf195b7.tar.gz
scummvm-rg350-2675580208561c8c8bd9d6908a202006ddf195b7.tar.bz2
scummvm-rg350-2675580208561c8c8bd9d6908a202006ddf195b7.zip
TITANIC: Fix crashes in PET and text cursor
Diffstat (limited to 'engines/titanic/pet_control/pet_load_save.cpp')
-rw-r--r--engines/titanic/pet_control/pet_load_save.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_load_save.cpp b/engines/titanic/pet_control/pet_load_save.cpp
index 5bfa1d635a..811fd12089 100644
--- a/engines/titanic/pet_control/pet_load_save.cpp
+++ b/engines/titanic/pet_control/pet_load_save.cpp
@@ -152,8 +152,7 @@ void CPetLoadSave::highlightChange() {
for (int idx = 0; idx < SAVEGAME_SLOTS_COUNT; ++idx)
_slotNames[idx].setColor(col);
- // TODO: Unknown if check
- if (true) {
+ if (_savegameSlotNum != -1) {
col = section ? section->getColor(4) : 0;
_slotNames[_savegameSlotNum].setLineColor(0, col);
}