Skip to content

Commit 347c185

Browse files
committed
Update WzImgSerializer.cs - Fix extracted .img file - update the pos of byte data relative to itself, instead of wz
1 parent a093b71 commit 347c185

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

MapleLib/WzLib/Serializer/WzImgSerializer.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ public void SerializeImage(WzImage img, string outPath)
4343
{
4444
using (WzBinaryWriter wzWriter = new WzBinaryWriter(stream, ((WzDirectory)img.parent).WzIv))
4545
{
46-
img.SaveImage(wzWriter);
46+
img.SaveImage(wzWriter, true,
47+
forceReadFromData: true // update the pos of data relative to itself, instead of the wz
48+
);
4749
}
4850
}
4951
}

0 commit comments

Comments
 (0)