From 13f822673acac749177b1ad6aa65ada5ab4acda0 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 6 Oct 2024 10:56:17 +0100 Subject: [PATCH] Make light indices a list --- KeepersCompound.LGS/Database/Chunks/WorldRep.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/KeepersCompound.LGS/Database/Chunks/WorldRep.cs b/KeepersCompound.LGS/Database/Chunks/WorldRep.cs index b08cf8c..5e3e35f 100644 --- a/KeepersCompound.LGS/Database/Chunks/WorldRep.cs +++ b/KeepersCompound.LGS/Database/Chunks/WorldRep.cs @@ -332,7 +332,7 @@ public class WorldRep : IChunk public LightmapInfo[] LightList { get; set; } public Lightmap[] Lightmaps { get; set; } public int LightIndexCount { get; set; } - public ushort[] LightIndices { get; set; } + public List LightIndices { get; set; } public Cell(BinaryReader reader, int bpp) { @@ -392,10 +392,10 @@ public class WorldRep : IChunk Lightmaps[i] = new Lightmap(reader, info.Width, info.Height, info.AnimLightBitmask, bpp); } LightIndexCount = reader.ReadInt32(); - LightIndices = new ushort[LightIndexCount]; + LightIndices = new List(LightIndexCount); for (var i = 0; i < LightIndexCount; i++) { - LightIndices[i] = reader.ReadUInt16(); + LightIndices.Add(reader.ReadUInt16()); } }