aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2007-09-19 01:43:49 +0000
committerFilippos Karapetis2007-09-19 01:43:49 +0000
commit7538fcbaef2672b29186280497772d9aa48e1cbb (patch)
tree9a2b13f6fad7fb273a89bf17e9b4432d2d35f5f0 /engines
parent67c33713aa54f8ecd79fe64ccb0db14a4369f0d1 (diff)
downloadscummvm-rg350-7538fcbaef2672b29186280497772d9aa48e1cbb.tar.gz
scummvm-rg350-7538fcbaef2672b29186280497772d9aa48e1cbb.tar.bz2
scummvm-rg350-7538fcbaef2672b29186280497772d9aa48e1cbb.zip
Removed a variable initialization out of a while loop
svn-id: r28959
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/music.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/saga/music.cpp b/engines/saga/music.cpp
index 6b233e0256..7181343717 100644
--- a/engines/saga/music.cpp
+++ b/engines/saga/music.cpp
@@ -159,8 +159,9 @@ int DigitalMusicInputStream::readBuffer(int16 *buffer, const int numSamples) {
return _compressedStream->readBuffer(buffer, numSamples);
int samples = 0;
+ int len = 0;
+
while (samples < numSamples && !eosIntern()) {
- int len = 0;
len = MIN(numSamples - samples, (int) (_bufferEnd - _pos));
memcpy(buffer, _pos, len * 2);
buffer += len;