[Scummvm-git-logs] scummvm master -> 439c68b5cfda42a576b3b194a3cd9ae15f905aad

dreammaster dreammaster at scummvm.org
Thu Sep 1 05:38:31 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
439c68b5cf TITANIC: Add assert to detect what's currently a memory corruption


Commit: 439c68b5cfda42a576b3b194a3cd9ae15f905aad
    https://github.com/scummvm/scummvm/commit/439c68b5cfda42a576b3b194a3cd9ae15f905aad
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-08-31T23:38:25-04:00

Commit Message:
TITANIC: Add assert to detect what's currently a memory corruption

Changed paths:
    engines/titanic/sound/sound_manager.cpp



diff --git a/engines/titanic/sound/sound_manager.cpp b/engines/titanic/sound/sound_manager.cpp
index e23fb1d..9f3d29e 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);
 





More information about the Scummvm-git-logs mailing list