diff --git a/GameRes/ImagePNG.cs b/GameRes/ImagePNG.cs index 2f669557..4a780e4e 100644 --- a/GameRes/ImagePNG.cs +++ b/GameRes/ImagePNG.cs @@ -94,7 +94,7 @@ namespace GameRes bin.Write (Binary.BigEndian ((uint)image.OffsetY)); bin.Write ((byte)0); bin.Flush(); - uint crc = Crc32.Compute (membuf.GetBuffer(), 8, 9); + uint crc = Crc32.Compute (membuf.GetBuffer(), 4, 13); bin.Write (Binary.BigEndian (crc)); } file.Write (membuf.GetBuffer(), 0, 9+12); // chunk + size+id+crc