1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-10 15:20:29 +01:00

Removed ToList from vehiclesInWorld loop

This commit is contained in:
Rich Dunne 2021-05-23 07:05:47 -06:00
parent bc2979de8c
commit 7bc6303eb7

View file

@ -241,7 +241,7 @@ namespace SceneManager.Paths
foreach (Waypoint waypoint in collectorWaypoints.ToList())
{
foreach (Vehicle vehicle in vehiclesInWorld.ToList())
foreach (Vehicle vehicle in vehiclesInWorld)
{
if (vehicle.IsNearCollectorWaypoint(waypoint) && vehicle.IsValidForPathCollection(this))
{