aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2014-08-30 17:44:40 -0400
committerPaul Gilbert2014-08-30 17:44:40 -0400
commitadddb1377d927403abc406c09f1d76ac5700188a (patch)
tree9ed6a7f300d3dd697272b51ccabe8ddf325d0a70 /engines
parentf869019d30bbef118abb140d73bbd6ebc3a5be56 (diff)
downloadscummvm-rg350-adddb1377d927403abc406c09f1d76ac5700188a.tar.gz
scummvm-rg350-adddb1377d927403abc406c09f1d76ac5700188a.tar.bz2
scummvm-rg350-adddb1377d927403abc406c09f1d76ac5700188a.zip
ACCESS: Fix loading sound in cmdLoadSound
Diffstat (limited to 'engines')
-rw-r--r--engines/access/scripts.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp
index 8ac0de78fa..2fdb91e35b 100644
--- a/engines/access/scripts.cpp
+++ b/engines/access/scripts.cpp
@@ -688,8 +688,11 @@ void Scripts::cmdClearBlock() {
void Scripts::cmdLoadSound() {
int idx = _data->readSint16LE();
- _vm->_sound->_soundTable[0] = _vm->_files->loadFile(_vm->_extraCells[idx]._vidSound);
- _vm->_sound->_soundPriority[0] = 1;
+
+ _vm->_sound->_soundTable.clear();
+ _vm->_sound->_soundPriority.clear();
+ _vm->_sound->_soundTable.push_back(_vm->_files->loadFile(_vm->_extraCells[idx]._vidSound));
+ _vm->_sound->_soundPriority.push_back(1);
}
void Scripts::cmdFreeSound() {