summaryrefslogtreecommitdiff
path: root/NW4RTools/Texture.cs
diff options
context:
space:
mode:
Diffstat (limited to 'NW4RTools/Texture.cs')
-rw-r--r--NW4RTools/Texture.cs2
1 files changed, 1 insertions, 1 deletions
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;