From 6340a4c5456a4c31c7a544f68998fd4a24b30bec Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 18 Aug 2024 11:08:42 +0100 Subject: [PATCH] Fix incorrect light and uv indices on model materials --- project/code/LGS/ModelFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/code/LGS/ModelFile.cs b/project/code/LGS/ModelFile.cs index 47bb77c..c1e7e17 100644 --- a/project/code/LGS/ModelFile.cs +++ b/project/code/LGS/ModelFile.cs @@ -129,7 +129,7 @@ public class ModelFile UvIndices = new ushort[Type == 0x1B ? VertexCount : 0]; for (var i = 0; i < UvIndices.Length; i++) { - LightIndices[i] = reader.ReadUInt16(); + UvIndices[i] = reader.ReadUInt16(); } Material = version == 4 ? reader.ReadByte() : (byte)0;