ZVISION: Fix out of bounds access.

This commit is contained in:
Johannes Schickel
2014-05-04 18:25:36 +02:00
parent 5c063a1f6c
commit ea359fe92a
+1 -1
View File
@@ -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;