aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/simon/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/simon/animation.cpp b/engines/simon/animation.cpp
index 26e36ca569..385c20473a 100644
--- a/engines/simon/animation.cpp
+++ b/engines/simon/animation.cpp
@@ -207,6 +207,8 @@ void MoviePlayer::startSound() {
if (_sequenceNum) {
Common::File in;
+ _fd.seek(size, SEEK_CUR);
+
in.open((const char *)"audio.wav");
if (in.isOpen() == false) {
error("Can't read offset file 'audio.wav'");
@@ -220,8 +222,6 @@ void MoviePlayer::startSound() {
in.seek(offset, SEEK_SET);
in.read(buffer, size);
in.close();
-
- _fd.seek(size, SEEK_CUR);
} else {
buffer = (byte *)malloc(size);
_fd.read(buffer, size);