diff --git a/Qwilight/UIComponent/UIItem.cs b/Qwilight/UIComponent/UIItem.cs index 0c543dc..b7236f2 100644 --- a/Qwilight/UIComponent/UIItem.cs +++ b/Qwilight/UIComponent/UIItem.cs @@ -25,7 +25,7 @@ public override int GetHashCode() => HashCode.Combine(UIEntry, YamlName); - public static bool operator ==(UIItem left, UIItem right) => left.Equals(right); + public static bool operator ==(UIItem left, UIItem right) => ReferenceEquals(left, right); public static bool operator !=(UIItem left, UIItem right) => !(left == right); }