diff --git a/OpenRA.Game/Primitives/Rectangle.cs b/OpenRA.Game/Primitives/Rectangle.cs index 2393575888..82269a8c84 100644 --- a/OpenRA.Game/Primitives/Rectangle.cs +++ b/OpenRA.Game/Primitives/Rectangle.cs @@ -34,7 +34,7 @@ namespace OpenRA.Primitives public static bool operator ==(Rectangle left, Rectangle right) { - return left.Location == right.Location && left.Size == right.Size; + return left.X == right.X && left.Y == right.Y && left.Width == right.Width && left.Height == right.Height; } public static bool operator !=(Rectangle left, Rectangle right)