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,11 +792,13 @@ void Scripts::cmdFreeSound() {
|
||||||
_vm->_events->pollEvents();
|
_vm->_events->pollEvents();
|
||||||
} while (!_vm->shouldQuit() && sound._playingSound);
|
} while (!_vm->shouldQuit() && sound._playingSound);
|
||||||
|
|
||||||
// Free the sound
|
// Free the sounds
|
||||||
|
while (sound._soundTable.size() > 0) {
|
||||||
delete sound._soundTable[0]._res;
|
delete sound._soundTable[0]._res;
|
||||||
sound._soundTable.remove_at(0);
|
sound._soundTable.remove_at(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Scripts::cmdSetVideoSound() {
|
void Scripts::cmdSetVideoSound() {
|
||||||
uint32 startPos = _data->pos();
|
uint32 startPos = _data->pos();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue