Make PathDistance struct immutable.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user