Skip to content

Commit

Permalink
Make it match based on names
Browse files Browse the repository at this point in the history
  • Loading branch information
CarbonNeuron committed Jan 19, 2021
1 parent f5c74f3 commit 67b53d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AUCapture-WPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,9 @@ private void UserForm_PlayerChanged(object sender, PlayerChangedEventArgs e)
}
else
{
if (e.Action != PlayerAction.Joined && context.Players.Any(x => String.Equals(x.Name, e.Name, StringComparison.CurrentCultureIgnoreCase) && x.Color==e.Color))
if (e.Action != PlayerAction.Joined && context.Players.Any(x => String.Equals(x.Name, e.Name, StringComparison.CurrentCultureIgnoreCase)))
{
var player = context.Players.First(x => String.Equals(x.Name, e.Name, StringComparison.CurrentCultureIgnoreCase) && x.Color == e.Color);
var player = context.Players.First(x => String.Equals(x.Name, e.Name, StringComparison.CurrentCultureIgnoreCase));
Dispatcher.Invoke((Action) (() =>
{
switch (e.Action)
Expand Down

0 comments on commit 67b53d5

Please sign in to comment.