Code Analysis feedback tweaks.

This commit is contained in:
CloneTrooper1019
2020-09-14 11:20:34 -05:00
parent 4240337863
commit 2a114e70b0
25 changed files with 100 additions and 104 deletions

View File

@ -47,10 +47,9 @@ namespace RobloxFiles.BinaryFormat.Chunks
INST inst = file.Classes[ClassIndex];
ClassName = inst.ClassName;
Property[] props = new Property[inst.NumInstances];
var ids = inst.InstanceIds;
int instCount = inst.NumInstances;
var props = new Property[inst.NumInstances];
for (int i = 0; i < instCount; i++)
{
@ -71,8 +70,8 @@ namespace RobloxFiles.BinaryFormat.Chunks
{
for (int i = 0; i < instCount; i++)
{
object result = read(i);
props[i].Value = result;
var prop = props[i];
prop.Value = read(i);
}
});