diff options
Diffstat (limited to 'simon/midi.cpp')
-rw-r--r-- | simon/midi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/simon/midi.cpp b/simon/midi.cpp index 42f86f627d..11940a1229 100644 --- a/simon/midi.cpp +++ b/simon/midi.cpp @@ -461,9 +461,9 @@ void MidiPlayer::loadS1D (File *in, bool sfx) { MusicInfo *p = sfx ? &_sfx : &_music; clearConstructs (*p); - uint32 size = in->readByte() | (in->readByte() << 8); + uint16 size = in->readUint16LE(); if (size != in->size() - 2) { - printf ("ERROR! Size mismatch in simon1demo MUS file (%ld versus reported %ld)\n", (long) in->size() - 2, (long) size); + printf ("ERROR! Size mismatch in simon1demo MUS file (%ld versus reported %d)\n", (long) in->size() - 2, (int) size); _system->unlock_mutex (_mutex); return; } |