From 6fe24ad40a93fe508d4e42954e24963a78976128 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 29 Dec 2003 13:41:20 +0000 Subject: Emergency bugfix to keep Full Throttle from crashing as soon as someone tries to speak. I don't know this code well enough to know if there is a more appropriate way of fixing this... svn-id: r12007 --- scumm/imuse_digi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scumm/imuse_digi.cpp b/scumm/imuse_digi.cpp index 8549c32638..d73c7bc688 100644 --- a/scumm/imuse_digi.cpp +++ b/scumm/imuse_digi.cpp @@ -791,7 +791,7 @@ void IMuseDigital::startSound(int sound, byte *voc_src, int voc_size, int voc_ra byte *data; if ((sound == kTalkSoundID) && (_voiceVocData) || (READ_UINT32(ptr) == MKID('Crea'))) { - if (READ_UINT32(ptr) == MKID('Crea')) { + if (ptr && READ_UINT32(ptr) == MKID('Crea')) { int loops = 0; voc_src = readVOCFromMemory(ptr, voc_size, voc_rate, loops); } -- cgit v1.2.3