diff options
author | Nicolas Bacca | 2004-12-11 00:37:05 +0000 |
---|---|---|
committer | Nicolas Bacca | 2004-12-11 00:37:05 +0000 |
commit | 876079be752023dcd377518f226fe3fc158b6048 (patch) | |
tree | 2f2eca82091743c561f42e0347556a6bf285209f /sword2/driver | |
parent | c9fb63af0b63d0a5424b34a0e3acd79ea14fd199 (diff) | |
download | scummvm-rg350-876079be752023dcd377518f226fe3fc158b6048.tar.gz scummvm-rg350-876079be752023dcd377518f226fe3fc158b6048.tar.bz2 scummvm-rg350-876079be752023dcd377518f226fe3fc158b6048.zip |
Fix dumb CE compiler
svn-id: r16026
Diffstat (limited to 'sword2/driver')
-rw-r--r-- | sword2/driver/d_sound.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sword2/driver/d_sound.cpp b/sword2/driver/d_sound.cpp index 5515dd7e81..546071ba51 100644 --- a/sword2/driver/d_sound.cpp +++ b/sword2/driver/d_sound.cpp @@ -511,11 +511,12 @@ Sound::~Sound() { int Sound::readBuffer(int16 *buffer, const int numSamples) { Common::StackLock lock(_mutex); + int i; if (!_soundOn || _musicPaused) return 0; - for (int i = 0; i < MAXMUS; i++) { + for (i = 0; i < MAXMUS; i++) { if (_music[i] && _music[i]->readyToRemove()) { delete _music[i]; _music[i] = NULL; @@ -536,7 +537,7 @@ int Sound::readBuffer(int16 *buffer, const int numSamples) { if (!_mixBuffer) return 0; - for (int i = 0; i < MAXMUS; i++) { + for (i = 0; i < MAXMUS; i++) { if (!_music[i]) continue; |