diff options
author | Travis Howell | 2006-05-06 08:33:52 +0000 |
---|---|---|
committer | Travis Howell | 2006-05-06 08:33:52 +0000 |
commit | 37d2f30999398acc4bb3edff5b6cdac29a2af7c3 (patch) | |
tree | 38bb09882192aba7d7cb7e90cc631e2f17cee489 /engines | |
parent | 90ced0999730e87a0a9d6d0a0f99969123398a85 (diff) | |
download | scummvm-rg350-37d2f30999398acc4bb3edff5b6cdac29a2af7c3.tar.gz scummvm-rg350-37d2f30999398acc4bb3edff5b6cdac29a2af7c3.tar.bz2 scummvm-rg350-37d2f30999398acc4bb3edff5b6cdac29a2af7c3.zip |
Ooops, skip WAV data, before changing size var
svn-id: r22367
Diffstat (limited to 'engines')
-rw-r--r-- | engines/simon/animation.cpp | 4 |
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); |