diff options
author | Paul Gilbert | 2016-08-31 23:38:25 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-31 23:38:25 -0400 |
commit | 439c68b5cfda42a576b3b194a3cd9ae15f905aad (patch) | |
tree | da32c5f632c2bd9df1fbf412f50df7a7c4e6193f /engines | |
parent | 8b454a61abfb7d390d33117e5ced4448e562133e (diff) | |
download | scummvm-rg350-439c68b5cfda42a576b3b194a3cd9ae15f905aad.tar.gz scummvm-rg350-439c68b5cfda42a576b3b194a3cd9ae15f905aad.tar.bz2 scummvm-rg350-439c68b5cfda42a576b3b194a3cd9ae15f905aad.zip |
TITANIC: Add assert to detect what's currently a memory corruption
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/sound/sound_manager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/titanic/sound/sound_manager.cpp b/engines/titanic/sound/sound_manager.cpp index e23fb1d207..9f3d29e967 100644 --- a/engines/titanic/sound/sound_manager.cpp +++ b/engines/titanic/sound/sound_manager.cpp @@ -272,6 +272,7 @@ void QSoundManager::setVolume(int handle, uint volume, uint seconds) { for (uint idx = 0; idx < _slots.size(); ++idx) { Slot &slot = _slots[idx]; if (slot._handle == handle) { + assert(slot._channel >= 0); _channelsVolume[slot._channel] = volume; updateVolume(slot._channel, seconds * 1000); |