aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/sound.cpp b/engines/gob/sound.cpp
index 8494e1da07..c2e48adac1 100644
--- a/engines/gob/sound.cpp
+++ b/engines/gob/sound.cpp
@@ -382,9 +382,9 @@ void Snd::checkEndSample() {
}
int Snd::readBuffer(int16 *buffer, const int numSamples) {
- for (int i = 0; i < numSamples; i++) {
- Common::StackLock slock(_mutex);
+ Common::StackLock slock(_mutex);
+ for (int i = 0; i < numSamples; i++) {
if (!_data)
return i;
if (_end || (_offset >= _length))