Forgot to set position back

Forgot to set the position of stream back to the end of INF1 after writing section size, which resulted in an entirely corrupted file.
This commit is contained in:
2021-12-03 06:09:02 +01:00
parent 3967b1cef2
commit e7b50b9c3a

View File

@@ -299,6 +299,8 @@ namespace BMGEditor
Int64 INF1end = m_File.Stream.Position;
m_File.Stream.Position = INF1start + 0x04;
m_File.Writer.Write((UInt32)(INF1end - INF1start));
m_File.Stream.Position = INF1end;
//DAT1