Skip to content

Commit

Permalink
ACCESS: Fix loading sound in cmdLoadSound
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Aug 30, 2014
1 parent f869019 commit adddb13
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions engines/access/scripts.cpp
Expand Up @@ -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() {
Expand Down

0 comments on commit adddb13

Please sign in to comment.