mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 16:03:24 +00:00
TINSEL: Fix DW2 assertion when quitting during cutscene
Call _bmv->FinishBMV() before setting g_pCurBgnd to NULL. Otherwise, there will be an assertion if quitting during a cutscene while a subtitle is being shown. (At least I think that's the condition.) (Also, it seems to be a good idea to call it before EndScene(), because even though there was no assertion, I got a lot of warnings when I did it after.)
This commit is contained in:
parent
7d6d7a7945
commit
56431cfc59
@ -868,9 +868,6 @@ TinselEngine::TinselEngine(OSystem *syst, const TinselGameDescription *gameDesc)
|
||||
}
|
||||
|
||||
TinselEngine::~TinselEngine() {
|
||||
if (_bmv->MoviePlaying())
|
||||
_bmv->FinishBMV();
|
||||
|
||||
_system->getAudioCDManager()->stop();
|
||||
delete _bmv;
|
||||
delete _sound;
|
||||
@ -1007,6 +1004,9 @@ Common::Error TinselEngine::run() {
|
||||
g_system->delayMillis(10);
|
||||
}
|
||||
|
||||
if (_bmv->MoviePlaying())
|
||||
_bmv->FinishBMV();
|
||||
|
||||
// Write configuration
|
||||
_vm->_config->writeToDisk();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user