Fix regression from 74f813ed3e

This commit is contained in:
Wojtek Figat
2021-11-30 20:17:16 +01:00
parent c0b4523b7b
commit 1b3790f60e
2 changed files with 3 additions and 3 deletions

View File

@@ -1796,7 +1796,7 @@ namespace FlaxEngine
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public bool Equals(Vector2 other)
{
return Mathf.NearEqual(X, X) && Mathf.NearEqual(other.Y, other.Y);
return Mathf.NearEqual(other.X, X) && Mathf.NearEqual(other.Y, Y);
}
/// <summary>
@@ -1808,7 +1808,7 @@ namespace FlaxEngine
{
if (!(value is Vector2 other))
return false;
return Mathf.NearEqual(X, X) && Mathf.NearEqual(other.Y, other.Y);
return Mathf.NearEqual(other.X, X) && Mathf.NearEqual(other.Y, Y);
}
}
}