From 78f8c94df8dab2f523dd8821f85502549d858f0a Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 26 Jun 2014 21:49:59 +1200 Subject: [PATCH] Make PathDistance struct immutable. --- OpenRA.Mods.RA/Move/PathFinder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/Move/PathFinder.cs b/OpenRA.Mods.RA/Move/PathFinder.cs index 7c4e5524e9..444fdaae57 100644 --- a/OpenRA.Mods.RA/Move/PathFinder.cs +++ b/OpenRA.Mods.RA/Move/PathFinder.cs @@ -284,8 +284,8 @@ namespace OpenRA.Mods.RA.Move public struct PathDistance : IComparable { - public int EstTotal; - public CPos Location; + public readonly int EstTotal; + public readonly CPos Location; public PathDistance(int estTotal, CPos location) {