aboutsummaryrefslogtreecommitdiff
path: root/engines/lab
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lab')
-rw-r--r--engines/lab/music.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/lab/music.cpp b/engines/lab/music.cpp
index 396aacf103..0a23589079 100644
--- a/engines/lab/music.cpp
+++ b/engines/lab/music.cpp
@@ -99,16 +99,14 @@ void Music::loadSoundEffect(const Common::String filename, bool loop, bool waitT
uint16 sampleRate = file->readUint16LE();
file->skip(2);
playSoundEffect(sampleRate, soundSize, loop, file);
- }
- else if (soundTag == 65535) {
+ } else if (soundTag == 65535) {
if (waitTillFinished) {
while (isSoundEffectActive()) {
_vm->updateEvents();
_vm->waitTOF();
}
}
- }
- else
+ } else
file->skip(soundSize);
}
}