From d4a0375f7e5f02f47b16d8cf1a057e15611b230b Mon Sep 17 00:00:00 2001 From: Florian Kagerer Date: Sun, 7 Feb 2010 16:12:31 +0000 Subject: LOL: fixed handling of invalid monster attack sfx in the Urbish mines (should fix bug no #2945950) svn-id: r47967 --- engines/kyra/sound_lol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/kyra/sound_lol.cpp') diff --git a/engines/kyra/sound_lol.cpp b/engines/kyra/sound_lol.cpp index ad090609d1..1bcb77c89d 100644 --- a/engines/kyra/sound_lol.cpp +++ b/engines/kyra/sound_lol.cpp @@ -164,7 +164,7 @@ void LoLEngine::snd_playSoundEffect(int track, int volume) { return; _lastSfxTrack = track; - if (track == -1) + if (track == -1 || track >= _ingameSoundListSize) return; volume &= 0xff; -- cgit v1.2.3