forked from 0ad/0ad
now correctly set m_UnpackPos
This was SVN commit r1169.
This commit is contained in:
parent
69e9f3ef79
commit
ea9bd61195
@ -49,7 +49,6 @@ void CFileUnpacker::Read(const char* filename,const char magicstr[4])
|
||||
char* magic = (char*)(header+0);
|
||||
m_Version = *(u32*)(header+4);
|
||||
u32 datasize = *(u32*)(header+8);
|
||||
void* data = (header+12);
|
||||
|
||||
// check we've got the right kind of file
|
||||
// .. and that we read exactly headersize+datasize
|
||||
@ -61,6 +60,8 @@ void CFileUnpacker::Read(const char* filename,const char magicstr[4])
|
||||
m_Size = 0;
|
||||
throw CFileTypeError();
|
||||
}
|
||||
|
||||
m_UnpackPos = 12;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user