mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
ASYLUM: fix crash on exit
This commit is contained in:
parent
c368834a9e
commit
8f89a66940
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user