dont do useless Select

This commit is contained in:
JohnCorby 2022-07-21 16:53:18 -07:00
parent 25df3d8bbe
commit d7c30a9892

View File

@ -113,7 +113,7 @@ namespace NewHorizons.Handlers
Logger.Log("Loading Deferred Bodies"); Logger.Log("Loading Deferred Bodies");
// Make a copy of the next pass of bodies so that the array can be edited while we load them // Make a copy of the next pass of bodies so that the array can be edited while we load them
toLoad = _nextPassBodies.Select(x => x).ToList(); toLoad = _nextPassBodies.ToList();
while (_nextPassBodies.Count != 0) while (_nextPassBodies.Count != 0)
{ {
foreach (var body in toLoad) foreach (var body in toLoad)