Make PathDistance struct immutable.
This commit is contained in:
@@ -284,8 +284,8 @@ namespace OpenRA.Mods.RA.Move
|
|||||||
|
|
||||||
public struct PathDistance : IComparable<PathDistance>
|
public struct PathDistance : IComparable<PathDistance>
|
||||||
{
|
{
|
||||||
public int EstTotal;
|
public readonly int EstTotal;
|
||||||
public CPos Location;
|
public readonly CPos Location;
|
||||||
|
|
||||||
public PathDistance(int estTotal, CPos location)
|
public PathDistance(int estTotal, CPos location)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user