From 21b89308b5595ba05d66cc6d4967a491e36bb585 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 11 Jul 2006 16:51:10 +0000 Subject: This should fix bug #1520629 ("No Music in Simon1"). svn-id: r23488 --- engines/simon/midi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/simon/midi.cpp b/engines/simon/midi.cpp index d2d31c1e44..f139f1fa2e 100644 --- a/engines/simon/midi.cpp +++ b/engines/simon/midi.cpp @@ -479,14 +479,14 @@ void MidiPlayer::loadMultipleSMF(Common::File *in, bool sfx) { printf("Expected MThd but found '%c%c%c%c' instead!\n", buf[0], buf[1], buf[2], buf[3]); return; } - in->seek(in->readUint32BE() + in->pos(), SEEK_SET); + in->seek(in->readUint32BE(), SEEK_CUR); // Now skip all the MTrk blocks while (true) { in->read(buf, 4); if (memcmp(buf, "MTrk", 4)) break; - in->seek(in->readUint32BE() + in->pos(), SEEK_SET); + in->seek(in->readUint32BE(), SEEK_CUR); } uint32 pos2 = in->pos() - 4; -- cgit v1.2.3