aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Online/Hacking/Matchmaker.cs
diff options
context:
space:
mode:
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();