Skip to content

Commit

Permalink
Fix crash when previewing d3dtx images
Browse files Browse the repository at this point in the history
  • Loading branch information
iMrShadow committed Mar 18, 2024
1 parent 59fb3dd commit 363a3b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter/Main/D3DTX_Master.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 363a3b1

Please # to comment.