aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/pet_control/pet_inventory.cpp')
-rw-r--r--engines/titanic/pet_control/pet_inventory.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/titanic/pet_control/pet_inventory.cpp b/engines/titanic/pet_control/pet_inventory.cpp
index 2fb60bf9a6..55176d8b0e 100644
--- a/engines/titanic/pet_control/pet_inventory.cpp
+++ b/engines/titanic/pet_control/pet_inventory.cpp
@@ -202,16 +202,15 @@ int CPetInventory::getItemIndex(CGameObject *item) const {
CGameObject *CPetInventory::getImage(int index) {
if (index >= 0 && index < 46) {
- int offset = index - 20;
int bits = 0;
- switch (offset) {
- case 0:
+ switch (index) {
+ case 20:
bits = 4;
break;
- case 1:
+ case 21:
bits = 8;
break;
- case 2:
+ case 22:
bits = 1;
break;
case 23: