From 6e484bcc14869f9eb4dfb3ee27112433d8835d39 Mon Sep 17 00:00:00 2001 From: Anton Pupkov Date: Thu, 18 Jan 2024 17:18:29 -0800 Subject: [PATCH] Fix NodeList and NodeMap equality check --- Dota2GSI/Nodes/Node.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dota2GSI/Nodes/Node.cs b/Dota2GSI/Nodes/Node.cs index 9007cd6..ec3a50f 100644 --- a/Dota2GSI/Nodes/Node.cs +++ b/Dota2GSI/Nodes/Node.cs @@ -295,7 +295,7 @@ public override string ToString() public override bool Equals(object obj) { return obj is NodeMap other && - Count == other.Count && !this.Except(other).Any(); + this.SequenceEqual(other); } /// @@ -360,7 +360,7 @@ public override string ToString() public override bool Equals(object obj) { return obj is NodeList other && - Count == other.Count && !this.Except(other).Any(); + this.SequenceEqual(other); } ///