Skip to content

Commit

Permalink
zzre: Fix GivePlayerCards not putting fairy into deck slot
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Oct 18, 2023
1 parent 7f6f381 commit fca5f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zzio/EnumerableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static int IndexOf<T>(this IEnumerable<T> set, Func<T, bool> predicate) =

public static int IndexOf<T>(this IEnumerable<T> 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();
Expand Down

0 comments on commit fca5f48

Please sign in to comment.