From 7538fcbaef2672b29186280497772d9aa48e1cbb Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 19 Sep 2007 01:43:49 +0000 Subject: Removed a variable initialization out of a while loop svn-id: r28959 --- engines/saga/music.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines') 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; -- cgit v1.2.3