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:
parent
bc2979de8c
commit
7bc6303eb7
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue