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:
Filippos Karapetis 2015-07-10 13:06:30 +03:00
parent d5edb841f0
commit 6546882b4f

View File

@ -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;