aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/sfx/core.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/sfx/core.cpp b/engines/sci/sfx/core.cpp
index 1831ae14fc..e29560ba35 100644
--- a/engines/sci/sfx/core.cpp
+++ b/engines/sci/sfx/core.cpp
@@ -553,6 +553,8 @@ void SfxState::updateMultiSong() {
/* _dump_playing_list(this, "before");*/
freezeTime(); /* Store song delay time */
+ // WORKAROUND: sometimes, newsong can be NULL (e.g. in SQ4).
+ // Handle this here, so that we avoid a crash
if (!newsong)
return;