Skip to content

Commit

Permalink
ACCESS: Fix cmdFreeSound, which fixes the sound played during the dea…
Browse files Browse the repository at this point in the history
…th animation
  • Loading branch information
Strangerke committed Dec 16, 2014
1 parent 8120cbf commit 64435ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions engines/access/scripts.cpp
Expand Up @@ -792,9 +792,11 @@ void Scripts::cmdFreeSound() {
_vm->_events->pollEvents();
} while (!_vm->shouldQuit() && sound._playingSound);

// Free the sound
delete sound._soundTable[0]._res;
sound._soundTable.remove_at(0);
// Free the sounds
while (sound._soundTable.size() > 0) {
delete sound._soundTable[0]._res;
sound._soundTable.remove_at(0);
}
}
}

Expand Down

0 comments on commit 64435ef

Please sign in to comment.