From fca5f48bc94dab8580c3d784d2941a81762e84da Mon Sep 17 00:00:00 2001 From: Helco Date: Wed, 18 Oct 2023 18:32:23 +0200 Subject: [PATCH] zzre: Fix GivePlayerCards not putting fairy into deck slot --- zzio/EnumerableExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zzio/EnumerableExtensions.cs b/zzio/EnumerableExtensions.cs index 3a460f41..d77ef10d 100644 --- a/zzio/EnumerableExtensions.cs +++ b/zzio/EnumerableExtensions.cs @@ -26,7 +26,7 @@ public static int IndexOf(this IEnumerable set, Func predicate) = public static int IndexOf(this IEnumerable set, T value) => set .Indexed() - .Where(p => value?.Equals(p.Value) ?? false) + .Where(p => value?.Equals(p.Value) ?? ReferenceEquals(p.Value, null)) .Select(prop => prop.Index) .Append(-1) .First();