mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
MADS: Fix palette corruption when changing selected inventor item
This commit is contained in:
parent
dc4b9b8bc1
commit
643cbc6d16
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user