ASYLUM: fix crash on exit
This commit is contained in:
parent
c368834a9e
commit
8f89a66940
1 changed files with 6 additions and 0 deletions
|
@ -189,6 +189,10 @@ Common::Error AsylumEngine::run() {
|
||||||
checkAchievements();
|
checkAchievements();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Stop all sounds & music
|
||||||
|
_sound->stopMusic();
|
||||||
|
_sound->stopAll();
|
||||||
|
|
||||||
return Common::kNoError;
|
return Common::kNoError;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -265,6 +269,8 @@ void AsylumEngine::startGame(ResourcePackId sceneId, StartGameType type) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kStartGameLoad:
|
case kStartGameLoad:
|
||||||
|
// Stop all sounds & music
|
||||||
|
_sound->stopMusic();
|
||||||
_sound->stopAll();
|
_sound->stopAll();
|
||||||
_savegame->load();
|
_savegame->load();
|
||||||
_scene->enterLoad();
|
_scene->enterLoad();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue