From adddb1377d927403abc406c09f1d76ac5700188a Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 30 Aug 2014 17:44:40 -0400 Subject: ACCESS: Fix loading sound in cmdLoadSound --- engines/access/scripts.cpp | 7 +++++-- 1 file 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() { -- cgit v1.2.3