From a14470ce12c09a87665521387bee2f982cd5a6d0 Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Sun, 26 Jun 2016 07:46:56 -0400 Subject: Fix crash with phantom clients while matchmaking --- source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs') diff --git a/source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs b/source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs index aa673e4..fca22ac 100644 --- a/source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs +++ b/source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs @@ -68,7 +68,7 @@ namespace ShiftOS.Online.Hacking MakerTimer.Tick += (o, e) => { int index = rnd.Next(0, Players.Count - 1); - if (Players[index] != API.CurrentSave.MyOnlineNetwork) + if (Players[index] != API.CurrentSave.MyOnlineNetwork && Players[index].Name != null) { SelectedNetwork = Players[index]; MakerTimer.Stop(); -- cgit v1.2.3