diff options
Diffstat (limited to 'engines/sword1/sound.cpp')
-rw-r--r-- | engines/sword1/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp index 92bed1b624..ff2f1060ee 100644 --- a/engines/sword1/sound.cpp +++ b/engines/sword1/sound.cpp @@ -130,7 +130,7 @@ void Sound::checkSpeechFileEndianness() { else size /= 2; int16 prev_be_value = (int16)SWAP_BYTES_16(*((uint16*)(data))); - for (uint32 i = 1 ; i < size ; ++i) { + for (uint32 i = 1; i < size; ++i) { le_diff_sum += fabs((double)(data[i] - data[i-1])); int16 be_value = (int16)SWAP_BYTES_16(*((uint16*)(data + i))); be_diff_sum += fabs((double)(be_value - prev_be_value)); @@ -209,7 +209,7 @@ void Sound::fnStopFx(int32 fxNo) { if (cnt != _endOfQueue-1) _fxQueue[cnt] = _fxQueue[_endOfQueue-1]; _endOfQueue--; - return ; + return; } debug(8, "fnStopFx: id not found in queue"); } |