Set Psmf->headerSize to something.

Before it was uninitialized.
This commit is contained in:
Unknown W. Brackets 2014-01-01 13:24:05 -08:00
parent faf2fcb2c4
commit bb10ffd38f

View file

@ -249,6 +249,8 @@ Psmf::Psmf(u32 data) {
streamDataNextBlockSize = bswap32(Memory::Read_U32(data + 0x6A)); streamDataNextBlockSize = bswap32(Memory::Read_U32(data + 0x6A));
streamDataNextInnerBlockSize = bswap32(Memory::Read_U32(data + 0x7C)); streamDataNextInnerBlockSize = bswap32(Memory::Read_U32(data + 0x7C));
numStreams = bswap16(Memory::Read_U16(data + 0x80)); numStreams = bswap16(Memory::Read_U16(data + 0x80));
// TODO: Always?
headerSize = 0x800;
currentStreamNum = -1; currentStreamNum = -1;
currentAudioStreamNum = -1; currentAudioStreamNum = -1;