From 972a1bbfd4d74429814536c2ab781bfcb4db5aaf Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 10 Feb 2016 20:48:19 -0500 Subject: ACCESS: Fix spoken text randomly being skipped --- engines/access/scripts.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index 7c354e78e5..38313640f1 100644 --- a/engines/access/scripts.cpp +++ b/engines/access/scripts.cpp @@ -1005,10 +1005,7 @@ void Scripts::cmdFreeSound() { } while (!_vm->shouldQuit() && sound.isSFXPlaying()); // Free the sounds - while (sound._soundTable.size() > 0) { - delete sound._soundTable[0]._res; - sound._soundTable.remove_at(0); - } + sound.freeSounds(); } } -- cgit v1.2.3