diff options
Diffstat (limited to 'source/WindowsFormsApplication1/Apps')
| -rw-r--r-- | source/WindowsFormsApplication1/Apps/NetworkBrowser.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source/WindowsFormsApplication1/Apps/NetworkBrowser.cs b/source/WindowsFormsApplication1/Apps/NetworkBrowser.cs index 1890744..4662cb8 100644 --- a/source/WindowsFormsApplication1/Apps/NetworkBrowser.cs +++ b/source/WindowsFormsApplication1/Apps/NetworkBrowser.cs @@ -395,13 +395,16 @@ Those above values only matter if the leader decides to become a friend. If they t.Tick += (o, a) => { SetupSidePane(Online.Hacking.Matchmaker.Players[sindex]); - if(sindex < Online.Hacking.Matchmaker.Players.Count - 1) + if (Matchmaker.Players.Count > 1) { - sindex = 0; - } - else - { - sindex += 1; + if (sindex < Online.Hacking.Matchmaker.Players.Count - 1) + { + sindex = 0; + } + else + { + sindex += 1; + } } }; t.Start(); |
