diff --git a/astar/PathingHelper/SpeedHelper.cs b/astar/PathingHelper/SpeedHelper.cs index 98eb153..adb60d4 100644 --- a/astar/PathingHelper/SpeedHelper.cs +++ b/astar/PathingHelper/SpeedHelper.cs @@ -18,7 +18,7 @@ internal static class SpeedHelper return car ? SpeedCar.MaxBy(s => s.Value).Value : SpeedPedestrian.MaxBy(s => s.Value).Value; } - private static Dictionary SpeedPedestrian = new() { + private static readonly Dictionary SpeedPedestrian = new() { { HighwayType.NONE, 0 }, { HighwayType.motorway, 0 }, { HighwayType.trunk, 0 }, @@ -50,7 +50,7 @@ internal static class SpeedHelper { HighwayType.construction, 0 } }; - private static Dictionary SpeedCar = new() { + private static readonly Dictionary SpeedCar = new() { { HighwayType.NONE, 0 }, { HighwayType.motorway, 120 }, { HighwayType.trunk, 80 },