diff options
Diffstat (limited to 'engines/titanic/pet_control/pet_gfx_element.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_gfx_element.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/titanic/pet_control/pet_gfx_element.cpp b/engines/titanic/pet_control/pet_gfx_element.cpp index e43c847bb1..3fdfd02f3a 100644 --- a/engines/titanic/pet_control/pet_gfx_element.cpp +++ b/engines/titanic/pet_control/pet_gfx_element.cpp @@ -49,11 +49,11 @@ void CPetGfxElement::reset(const CString &name, CPetControl *petControl, PetElem return; CString numString(3); - int classNum = petControl->getPassengerClass(); + PassengerClass classNum = petControl->getPassengerClass(); - if (classNum >= 1 && classNum <= 3) { + if (classNum >= FIRST_CLASS && classNum <= THIRD_CLASS) { numString = CString(classNum); - } else if (classNum == 4) { + } else if (classNum == UNCHECKED) { int stateC = petControl->getPriorClass(); if (stateC == 1) numString = CString(stateC); |