From 363a3b12be637c55148f0774d65b19f6777b308c Mon Sep 17 00:00:00 2001 From: DarkShadow Date: Mon, 18 Mar 2024 22:06:49 +0200 Subject: [PATCH] Fix crash when previewing d3dtx images --- .../DDS_D3DTX_Converter/Main/D3DTX_Master.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter/Main/D3DTX_Master.cs b/DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter/Main/D3DTX_Master.cs index e6bc150..eb11a15 100644 --- a/DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter/Main/D3DTX_Master.cs +++ b/DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter/Main/D3DTX_Master.cs @@ -378,15 +378,15 @@ public uint GetHeight() if (d3dtx4 != null) return d3dtx4.mHeight; else if (d3dtx5 != null) - return d3dtx4.mHeight; + return d3dtx5.mHeight; else if (d3dtx6 != null) - return d3dtx4.mHeight; + return d3dtx6.mHeight; else if (d3dtx7 != null) - return d3dtx4.mHeight; + return d3dtx7.mHeight; else if (d3dtx8 != null) - return d3dtx4.mHeight; + return d3dtx8.mHeight; else if (d3dtx9 != null) - return d3dtx4.mHeight; + return d3dtx9.mHeight; else return 0; }