aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/sound
diff options
context:
space:
mode:
authorJohannes Schickel2014-05-04 18:25:36 +0200
committerJohannes Schickel2014-05-04 18:25:36 +0200
commitea359fe92a0d64ed49910366c3d58dc582d22a71 (patch)
tree70fd050d628671605ed6bce830122fe8fd7a5894 /engines/zvision/sound
parent5c063a1f6ce80d98611d961ef928a592456a51da (diff)
downloadscummvm-rg350-ea359fe92a0d64ed49910366c3d58dc582d22a71.tar.gz
scummvm-rg350-ea359fe92a0d64ed49910366c3d58dc582d22a71.tar.bz2
scummvm-rg350-ea359fe92a0d64ed49910366c3d58dc582d22a71.zip
ZVISION: Fix out of bounds access.
Diffstat (limited to 'engines/zvision/sound')
-rw-r--r--engines/zvision/sound/zork_raw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/sound/zork_raw.cpp b/engines/zvision/sound/zork_raw.cpp
index 55353acbb9..a0441a55f9 100644
--- a/engines/zvision/sound/zork_raw.cpp
+++ b/engines/zvision/sound/zork_raw.cpp
@@ -192,7 +192,7 @@ Audio::RewindableAudioStream *makeRawZorkStream(const Common::String &filePath,
}
}
} else if (engine->getGameId() == GID_GRANDINQUISITOR) {
- for (int i = 0; i < 6; ++i) {
+ for (uint i = 0; i < ARRAYSIZE(RawZorkStream::_zgiSoundParamLookupTable); ++i) {
if (RawZorkStream::_zgiSoundParamLookupTable[i].identifier == fileIdentifier) {
soundParams = RawZorkStream::_zgiSoundParamLookupTable[i];
foundParams = true;