EA MPF: Fixed v5 format without track checksum

This commit is contained in:
NicknineTheEagle 2022-03-31 16:40:15 +03:00
parent 3255f38b35
commit ef09f4c3b7

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;;