We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c044476 commit 5a17eb4Copy full SHA for 5a17eb4
3 files changed
CathodeLib/Scripts/CATHODE/Materials.cs
@@ -67,8 +67,7 @@ override protected bool LoadInternal()
67
material.TextureReferences[x] = texRef;
68
}
69
reader.BaseStream.Position += 8;
70
- List<int> cstIndexes = new List<int>();
71
- for (int x = 0; x < 5; x++) cstIndexes.Add(reader.ReadInt32());
+ int[] cstIndexes = Utilities.ConsumeArray<int>(reader, 5);
72
for (int x = 0; x < 5; x++)
73
{
74
int cstCount = reader.ReadByte();
0 commit comments