mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
ZVISION: Fix out of bounds access.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user