Skip to content

Commit

Permalink
fixed target list not sorted by distance
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki-Codes committed Sep 25, 2021
1 parent 0711384 commit 14f4ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Anamnesis/Views/TargetSelectorView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private void OnClose()

private int OnSort(object a, object b)
{
if (a is ActorViewModel actorA && b is ActorViewModel actorB)
if (a is ActorBasicViewModel actorA && b is ActorBasicViewModel actorB)
{
return actorA.DistanceFromPlayer.CompareTo(actorB.DistanceFromPlayer);
}
Expand Down

0 comments on commit 14f4ed9

Please sign in to comment.