Replace ResourceTree IEnumerables with lists

This commit is contained in:
Asriel Camora 2023-11-30 10:01:49 -08:00
parent eb0e334437
commit b595a0da0f
No known key found for this signature in database
GPG key ID: 92B8372B278DDE41
2 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@ internal static class ResourceTreeApiHelper
ActualPath = node.FullPath.ToString(),
ObjectAddress = node.ObjectAddress,
ResourceHandle = node.ResourceHandle,
Children = node.Children.Select(GetIpcNode).ToArray(),
Children = node.Children.Select(GetIpcNode).ToList(),
};
static Ipc.ResourceTree GetIpcTree(ResourceTree tree) =>
@ -94,7 +94,7 @@ internal static class ResourceTreeApiHelper
{
Name = tree.Name,
RaceCode = (ushort)tree.RaceCode,
Nodes = tree.Nodes.Select(GetIpcNode).ToArray(),
Nodes = tree.Nodes.Select(GetIpcNode).ToList(),
};
var resDictionary = new Dictionary<ushort, Ipc.ResourceTree>(4);