From 51fbba8731dd7de9cf68da2acaa43285441bc963 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 16 Sep 2020 01:21:37 +0200 Subject: [PATCH] made AStar.InfiniteCost a const because I don't know why it wasn't one before --- MLEM/Pathfinding/AStar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM/Pathfinding/AStar.cs b/MLEM/Pathfinding/AStar.cs index 84b53a4..74e465d 100644 --- a/MLEM/Pathfinding/AStar.cs +++ b/MLEM/Pathfinding/AStar.cs @@ -15,7 +15,7 @@ namespace MLEM.Pathfinding { /// /// A value that represents an infinite path cost, or a cost for a location that cannot possibly be reached. /// - public static readonly float InfiniteCost = float.PositiveInfinity; + public const float InfiniteCost = float.PositiveInfinity; /// /// The array of all directions that will be checked for path finding. /// Note that this array is only used if is true.