[Scummvm-cvs-logs] scummvm master -> a2cb8ddcdd4ddf64bac2470d5a7aa15b7ce81849

Strangerke Strangerke at scummvm.org
Tue Jan 12 11:21:30 CET 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:
a2cb8ddcdd VOYEUR: Add a safeguard in getVOCFileName


Commit: a2cb8ddcdd4ddf64bac2470d5a7aa15b7ce81849
    https://github.com/scummvm/scummvm/commit/a2cb8ddcdd4ddf64bac2470d5a7aa15b7ce81849
Author: Strangerke (strangerke at scummvm.org)
Date: 2016-01-12T11:14:44+01:00

Commit Message:
VOYEUR: Add a safeguard in getVOCFileName

Changed paths:
    engines/voyeur/sound.cpp



diff --git a/engines/voyeur/sound.cpp b/engines/voyeur/sound.cpp
index c0e5a04..0e9d35e 100644
--- a/engines/voyeur/sound.cpp
+++ b/engines/voyeur/sound.cpp
@@ -54,6 +54,7 @@ void SoundManager::setVOCOffset(int offset) {
 }
 
 Common::String SoundManager::getVOCFileName(int idx) {
+	assert (idx >= 0);
 	return Common::String::format("%s.voc", SZ_FILENAMES[idx]);
 }
 






More information about the Scummvm-git-logs mailing list