From 643cbc6d161b4226c3e3c5c1125fa7b5b33e7282 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 4 Jun 2014 21:53:14 -0400 Subject: [PATCH] MADS: Fix palette corruption when changing selected inventor item --- engines/mads/user_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp index 34127487837..fed6f786025 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); } }