aboutsummaryrefslogtreecommitdiff
path: root/engines/access
diff options
context:
space:
mode:
authorPaul Gilbert2016-02-10 20:48:19 -0500
committerPaul Gilbert2016-02-10 20:48:19 -0500
commit972a1bbfd4d74429814536c2ab781bfcb4db5aaf (patch)
tree68ed9f658ab65811e43ffcdea57d1011244888a3 /engines/access
parent24c9008d1c27b1a7e42da51010aa1dacdb6df2e9 (diff)
downloadscummvm-rg350-972a1bbfd4d74429814536c2ab781bfcb4db5aaf.tar.gz
scummvm-rg350-972a1bbfd4d74429814536c2ab781bfcb4db5aaf.tar.bz2
scummvm-rg350-972a1bbfd4d74429814536c2ab781bfcb4db5aaf.zip
ACCESS: Fix spoken text randomly being skipped
Diffstat (limited to 'engines/access')
-rw-r--r--engines/access/scripts.cpp5
1 files changed, 1 insertions, 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();
}
}