Merge pull request #1103 from NicknineTheEagle/ea

EA MPF: Fixed v5 format without track checksum
This commit is contained in:
NicknineTheEagle 2022-03-31 17:00:12 +03:00 committed by GitHub
commit 1bc40bcb5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1086,7 +1086,7 @@ VGMSTREAM* init_vgmstream_ea_mpf_mus(STREAMFILE* sf) {
if (!vgmstream)
goto fail;
} else {
if (version == 5 && read_u32be(0x00, sf_mus) != track_checksum)
if (version == 5 && track_checksum && read_u32be(0x00, sf_mus) != track_checksum)
goto fail;
sound_offset *= off_mult;;