aboutsummaryrefslogtreecommitdiff
path: root/engines/mads
diff options
context:
space:
mode:
authorPaul Gilbert2014-06-04 21:53:14 -0400
committerPaul Gilbert2014-06-04 21:53:14 -0400
commit643cbc6d161b4226c3e3c5c1125fa7b5b33e7282 (patch)
treee722aab5f58d7e6a3f0ca2722eea4d059cdd2738 /engines/mads
parentdc4b9b8bc19d17e441770c0ccab862952eb207a9 (diff)
downloadscummvm-rg350-643cbc6d161b4226c3e3c5c1125fa7b5b33e7282.tar.gz
scummvm-rg350-643cbc6d161b4226c3e3c5c1125fa7b5b33e7282.tar.bz2
scummvm-rg350-643cbc6d161b4226c3e3c5c1125fa7b5b33e7282.zip
MADS: Fix palette corruption when changing selected inventor item
Diffstat (limited to 'engines/mads')
-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);
}
}