Update TUnit, warning cleanup
Some checks failed
Build / Build (push) Failing after 35s

This commit is contained in:
2026-07-05 13:24:22 +02:00
parent 16a1990486
commit cc091d5327
61 changed files with 113 additions and 190 deletions

View File

@@ -25,7 +25,7 @@ public class BattleChoiceQueue : IDeepCloneable
/// <inheritdoc cref="BattleChoiceQueue"/>
public BattleChoiceQueue(ITurnChoice[] choices)
{
Array.Sort(choices, TurnChoiceComparer.Instance!);
Array.Sort(choices, TurnChoiceComparer.Instance);
_choices = choices;
}
@@ -144,7 +144,7 @@ public class BattleChoiceQueue : IDeepCloneable
/// </summary>
public void Remove(ITurnChoice choice)
{
var index = Array.FindIndex(_choices, _currentIndex, x => x == choice);
var index = Array.FindIndex(_choices, _currentIndex, x => Equals(x, choice));
if (index == -1)
return;
_choices[index] = null;