palette bug fix (inventory turned blue when leaving the scene after eating the mushroom)

svn-id: r30915
This commit is contained in:
Florian Kagerer 2008-02-22 07:00:12 +00:00
parent 3969249b93
commit faeb81fb62

View file

@ -846,7 +846,9 @@ int KyraEngine_v2::o2_mushroomEffect(ScriptState *script) {
}
snd_playSoundEffect(106);
_screen->fadePalette(_screen->_currentPalette, 90, &_updateFunctor);
_screen->fadePalette(_screen->getPalette(1), 30, &_updateFunctor);
memcpy(_screen->_currentPalette, _screen->getPalette(1), 768);
_screen->fadePalette(_screen->_currentPalette, 30, &_updateFunctor);
return 0;
}