From 1cf5a6283cd965c14f957bd0e989950a6e90e3c6 Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 25 Jul 2025 20:22:15 +0100 Subject: [PATCH] Improved `MongoId` `Equals` logic --- Libraries/SPTarkov.Server.Core/Models/Common/MongoId.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Models/Common/MongoId.cs b/Libraries/SPTarkov.Server.Core/Models/Common/MongoId.cs index 5ca1f10a..137c9e0c 100644 --- a/Libraries/SPTarkov.Server.Core/Models/Common/MongoId.cs +++ b/Libraries/SPTarkov.Server.Core/Models/Common/MongoId.cs @@ -84,7 +84,7 @@ public readonly struct MongoId : IEquatable { if (other is null) { - return this == null; + return _stringId == null; } return other.Equals(ToString(), StringComparison.InvariantCultureIgnoreCase);