aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mads/user_interface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp
index 3412748783..fed6f78602 100644
--- a/engines/mads/user_interface.cpp
+++ b/engines/mads/user_interface.cpp
@@ -995,8 +995,8 @@ void UserInterface::selectObject(int invIndex) {
noInventoryAnim();
} else {
loadInventoryAnim(_vm->_game->_objects._inventoryList[invIndex]);
- _vm->_palette->setPalette(_vm->_palette->_mainPalette, 7, 1);
- _vm->_palette->setPalette(_vm->_palette->_mainPalette, 246, 2);
+ _vm->_palette->setPalette(&_vm->_palette->_mainPalette[7 * 3], 7, 1);
+ _vm->_palette->setPalette(&_vm->_palette->_mainPalette[246 * 3], 246, 2);
}
}