diff --git a/OpenRA.Game/CPos.cs b/OpenRA.Game/CPos.cs index eaee345a62..2940bb8b67 100644 --- a/OpenRA.Game/CPos.cs +++ b/OpenRA.Game/CPos.cs @@ -37,7 +37,7 @@ namespace OpenRA public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode(); } - public bool Equals(CPos other) { return other == this; } + public bool Equals(CPos other) { return X == other.X && Y == other.Y; } public override bool Equals(object obj) { return obj is CPos && Equals((CPos)obj); } public override string ToString() { return X + "," + Y; }