From 966972def67485b51e2e59958af4a3ab6a3ffefd Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 11 Mar 2009 23:44:22 +0000 Subject: Fixed another crash right at the beginning of SQ4 svn-id: r39347 --- engines/sci/sfx/core.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines') 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) -- cgit v1.2.3