From 8b1bf35a205af1207a869a00b63a4700cab6abfa Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 24 Feb 2018 20:48:45 +0400 Subject: [PATCH] (CFP): minor fix. --- ArcFormats/Tail/ImageCFP.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ArcFormats/Tail/ImageCFP.cs b/ArcFormats/Tail/ImageCFP.cs index b29a9d19..2d92a80a 100644 --- a/ArcFormats/Tail/ImageCFP.cs +++ b/ArcFormats/Tail/ImageCFP.cs @@ -104,12 +104,11 @@ namespace GameRes.Formats.Tail int start_pos = header.ToInt32 (0x10); if (start_pos < 0x36) return null; - int extra_length = header.ToInt32 (0x1C); int width = header.ToInt32 (0x14); int height = header.ToInt32 (0x18); var info = new CfpMetaData { - Width = header.ToUInt32 (0x14), - Height = header.ToUInt32 (0x18), + Width = (uint)width, + Height = (uint)height, BPP = 32, }; info.DataLength = width * height * 4;