mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 15:18:11 +00:00
SAGA: Avoid crash if the engine errors out before full initialization
This may happen for example if the Miles Adlib driver errors out because of missing instrument data files (*.AD)
This commit is contained in:
parent
d5edb841f0
commit
6546882b4f
@ -637,6 +637,9 @@ void SagaEngine::syncSoundSettings() {
|
||||
}
|
||||
|
||||
void SagaEngine::pauseEngineIntern(bool pause) {
|
||||
if (!_render || !_music)
|
||||
return;
|
||||
|
||||
bool engineIsPaused = (_render->getFlags() & RF_RENDERPAUSE);
|
||||
if (engineIsPaused == pause)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user