aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs
diff options
context:
space:
mode:
authorMichaelTheShifter <[email protected]>2016-06-26 07:46:56 -0400
committerMichaelTheShifter <[email protected]>2016-06-26 07:46:56 -0400
commita14470ce12c09a87665521387bee2f982cd5a6d0 (patch)
tree4d6e41b24905341966bbae29256163f212eb88e9 /source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs
parent2963b1bff26afef38e40ba6b04644cb5996316af (diff)
downloadshiftos-c-_theultimatehacker-a14470ce12c09a87665521387bee2f982cd5a6d0.tar.gz
shiftos-c-_theultimatehacker-a14470ce12c09a87665521387bee2f982cd5a6d0.tar.bz2
shiftos-c-_theultimatehacker-a14470ce12c09a87665521387bee2f982cd5a6d0.zip
Fix crash with phantom clients while matchmaking
Diffstat (limited to 'source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs')
-rw-r--r--source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs2
1 files changed, 1 insertions, 1 deletions
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();