ASYLUM: fix crash on exit

This commit is contained in:
alxpnv 2021-09-22 15:54:31 +03:00
parent c368834a9e
commit 8f89a66940

View File

@ -189,6 +189,10 @@ Common::Error AsylumEngine::run() {
checkAchievements();
}
// Stop all sounds & music
_sound->stopMusic();
_sound->stopAll();
return Common::kNoError;
}
@ -265,6 +269,8 @@ void AsylumEngine::startGame(ResourcePackId sceneId, StartGameType type) {
break;
case kStartGameLoad:
// Stop all sounds & music
_sound->stopMusic();
_sound->stopAll();
_savegame->load();
_scene->enterLoad();