From 8413ee0313517aff4736d3d4d8fbb654b0cea8fd Mon Sep 17 00:00:00 2001 From: T1ti Date: Wed, 8 Jun 2022 07:12:19 +0200 Subject: [PATCH] write null bytes in mhpd --- src/noggit/map_index.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/noggit/map_index.cpp b/src/noggit/map_index.cpp index 3901862e..c0874260 100755 --- a/src/noggit/map_index.cpp +++ b/src/noggit/map_index.cpp @@ -209,7 +209,8 @@ void MapIndex::save() SetChunkHeader(wdtFile, curPos, 'MPHD', sizeof(MPHD)); curPos += 8; - wdtFile.Insert(curPos, sizeof(MPHD), (char*)&mphd); + // todo : wdt flags? + wdtFile.Extend(32); curPos += sizeof(MPHD); // }