Skip to content

Commit

Permalink
Fix NodeList and NodeMap equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpup committed Jan 19, 2024
1 parent 8eb9c3c commit 6e484bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dota2GSI/Nodes/Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public override string ToString()
public override bool Equals(object obj)
{
return obj is NodeMap<Key, Value> other &&
Count == other.Count && !this.Except(other).Any();
this.SequenceEqual(other);
}

/// <inheritdoc/>
Expand Down Expand Up @@ -360,7 +360,7 @@ public override string ToString()
public override bool Equals(object obj)
{
return obj is NodeList<Value> other &&
Count == other.Count && !this.Except(other).Any();
this.SequenceEqual(other);
}

/// <inheritdoc/>
Expand Down

0 comments on commit 6e484bc

Please sign in to comment.