diff options
author | Jamieson Christian | 2004-04-26 20:28:34 +0000 |
---|---|---|
committer | Jamieson Christian | 2004-04-26 20:28:34 +0000 |
commit | 4ee0365a231eee6baddf32a65ab15a59be6adb00 (patch) | |
tree | 16bb587018949f78d0209fd7d0e5cfaaaa0bd5d5 /sound | |
parent | eba215d9a826ec31a2558ccc0040d561bbaafd97 (diff) | |
download | scummvm-rg350-4ee0365a231eee6baddf32a65ab15a59be6adb00.tar.gz scummvm-rg350-4ee0365a231eee6baddf32a65ab15a59be6adb00.tar.bz2 scummvm-rg350-4ee0365a231eee6baddf32a65ab15a59be6adb00.zip |
Tweaked a few things to accommodate
MSVC6's idiosyncracies.
svn-id: r13644
Diffstat (limited to 'sound')
-rw-r--r-- | sound/audiocd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/audiocd.cpp b/sound/audiocd.cpp index 8c96a04097..e2f479e03b 100644 --- a/sound/audiocd.cpp +++ b/sound/audiocd.cpp @@ -129,10 +129,11 @@ AudioCDManager::Status AudioCDManager::getStatus() const { } int AudioCDManager::getCachedTrack(int track) { + int i; int current_index; // See if we find the track in the cache - for (int i = 0; i < CACHE_TRACKS; i++) + for (i = 0; i < CACHE_TRACKS; i++) if (_cached_tracks[i] == track) { if (_track_info[i]) return i; @@ -150,7 +151,7 @@ int AudioCDManager::getCachedTrack(int track) { _cached_tracks[current_index] = track; - for (int i = 0; i < ARRAYSIZE(TRACK_FORMATS)-1 && _track_info[current_index] == NULL; ++i) + for (i = 0; i < ARRAYSIZE(TRACK_FORMATS)-1 && _track_info[current_index] == NULL; ++i) _track_info[current_index] = TRACK_FORMATS[i].openTrackFunction(track); if (_track_info[current_index] != NULL) |