aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorPaul Gilbert2011-06-24 19:04:33 +1000
committerPaul Gilbert2011-06-26 10:00:39 +1000
commit13aa8fa79f998048fc8217b347813beba8cb0b62 (patch)
tree1eab84bcde87906f1f266f3f0e6424ddbe1d6a9e /engines/tsage
parentbfdf12ad2f9f4bc07561ce386928e41ffa31af4f (diff)
downloadscummvm-rg350-13aa8fa79f998048fc8217b347813beba8cb0b62.tar.gz
scummvm-rg350-13aa8fa79f998048fc8217b347813beba8cb0b62.tar.bz2
scummvm-rg350-13aa8fa79f998048fc8217b347813beba8cb0b62.zip
TSAGE: Fix for properly initialising the _voiceTypeStructPtrs array
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/sound.cpp b/engines/tsage/sound.cpp
index 8bdb2f2d4c..f0273ddfcb 100644
--- a/engines/tsage/sound.cpp
+++ b/engines/tsage/sound.cpp
@@ -664,11 +664,11 @@ void SoundManager::_sfRethinkSoundDrivers() {
byteVal = *groupData;
groupData += 2;
- for (idx = 0; idx < byteVal; ++idx) {
+ for (int entryIndez = 0; entryIndez < byteVal; ++entryIndez) {
VoiceStructEntry ve;
memset(&ve, 0, sizeof(VoiceStructEntry));
- ve._voiceNum = idx;
+ ve._voiceNum = entryIndez;
ve._driver = driver;
ve._type1._field4 = -1;
ve._type1._field5 = 0;