ACCESS: Fix cmdFreeSound, which fixes the sound played during the death animation
This commit is contained in:
parent
8120cbfde3
commit
64435ef25f
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue