This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user