aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorStrangerke2016-01-12 11:14:44 +0100
committerStrangerke2016-01-12 11:14:44 +0100
commita2cb8ddcdd4ddf64bac2470d5a7aa15b7ce81849 (patch)
treeaf2a620a430d808cee7178e21a1cb63128d12927 /engines/voyeur
parent0b4a1ec223d4bd4b1a4060083834b3af7fb8fef5 (diff)
downloadscummvm-rg350-a2cb8ddcdd4ddf64bac2470d5a7aa15b7ce81849.tar.gz
scummvm-rg350-a2cb8ddcdd4ddf64bac2470d5a7aa15b7ce81849.tar.bz2
scummvm-rg350-a2cb8ddcdd4ddf64bac2470d5a7aa15b7ce81849.zip
VOYEUR: Add a safeguard in getVOCFileName
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/sound.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/voyeur/sound.cpp b/engines/voyeur/sound.cpp
index c0e5a043cd..0e9d35e9a6 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]);
}