diff options
author | Filippos Karapetis | 2015-07-10 13:06:30 +0300 |
---|---|---|
committer | Filippos Karapetis | 2015-07-10 13:07:09 +0300 |
commit | 6546882b4f6de983a43d140eb4faf8171a12a1c1 (patch) | |
tree | 917538b7fa215b32972a21ebab14ceffba99a996 /engines | |
parent | d5edb841f0d67b2a80ccfb830ad407d4a0465f58 (diff) | |
download | scummvm-rg350-6546882b4f6de983a43d140eb4faf8171a12a1c1.tar.gz scummvm-rg350-6546882b4f6de983a43d140eb4faf8171a12a1c1.tar.bz2 scummvm-rg350-6546882b4f6de983a43d140eb4faf8171a12a1c1.zip |
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)
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/saga.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index 763e3a0398..b94bb66bb4 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -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; |