aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2009-03-11 23:44:22 +0000
committerFilippos Karapetis2009-03-11 23:44:22 +0000
commit966972def67485b51e2e59958af4a3ab6a3ffefd (patch)
tree199edc6ca250dd51f992dff515261d2baabc9faf /engines
parentf496f9932d5d18e8ead9a6182c2782f9f4405684 (diff)
downloadscummvm-rg350-966972def67485b51e2e59958af4a3ab6a3ffefd.tar.gz
scummvm-rg350-966972def67485b51e2e59958af4a3ab6a3ffefd.tar.bz2
scummvm-rg350-966972def67485b51e2e59958af4a3ab6a3ffefd.zip
Fixed another crash right at the beginning of SQ4
svn-id: r39347
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/sfx/core.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/sfx/core.cpp b/engines/sci/sfx/core.cpp
index ec9360795f..a0fc166f9c 100644
--- a/engines/sci/sfx/core.cpp
+++ b/engines/sci/sfx/core.cpp
@@ -264,6 +264,9 @@ static void _update_multi_song(sfx_state_t *self) {
/* _dump_playing_list(self, "before");*/
_freeze_time(self); /* Store song delay time */
+ if (!newsong)
+ return;
+
for (newseeker = newsong; newseeker;
newseeker = newseeker->next_playing) {
if (!newseeker || !newseeker->it)