Make PathDistance struct immutable.

This commit is contained in:
Paul Chote
2014-06-26 21:49:59 +12:00
parent 5560f276ca
commit 78f8c94df8

View File

@@ -284,8 +284,8 @@ namespace OpenRA.Mods.RA.Move
public struct PathDistance : IComparable<PathDistance>
{
public int EstTotal;
public CPos Location;
public readonly int EstTotal;
public readonly CPos Location;
public PathDistance(int estTotal, CPos location)
{