From b6b5c13c09d9a70ad2a106660bf124e7cde71265 Mon Sep 17 00:00:00 2001 From: Treeki Date: Mon, 6 Jun 2011 16:36:10 +0200 Subject: how did this bug stay around for so long --- NW4RTools/Texture.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NW4RTools/Texture.cs') diff --git a/NW4RTools/Texture.cs b/NW4RTools/Texture.cs index 6124ed4..a328648 100644 --- a/NW4RTools/Texture.cs +++ b/NW4RTools/Texture.cs @@ -308,7 +308,7 @@ namespace NW4RTools { } else if (format == TextureFormat.RGB5A3) { ushort val = data.ReadUInt16(); if ((val & 0x8000) == 0) { - uint a = (uint)(val & 0x7000) >> 3; + uint a = (uint)(val & 0x7000) >> 7; uint r = (uint)(val & 0xF00) >> 4; uint g = (uint)(val & 0xF0); uint b = (uint)(val & 0xF) << 4; -- cgit v1.2.3