aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod/scripts/vscripts/ui
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-06 21:52:34 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-06 21:52:34 +0000
commit1f534d940670d6df826be68b39fcaa846f139a81 (patch)
treeb5c08b6f8a12a2047455e9b1066d855bf803e632 /Northstar.Client/mod/scripts/vscripts/ui
parentf1a07e1b01923b45f7a82c063d25b8dea5b13d53 (diff)
downloadNorthstarMods-1f534d940670d6df826be68b39fcaa846f139a81.tar.gz
NorthstarMods-1f534d940670d6df826be68b39fcaa846f139a81.zip
some bugfixes from playtest
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/ui')
-rw-r--r--Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut2
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
index c288b3a8..63377f9f 100644
--- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
+++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut
@@ -172,7 +172,7 @@ string function FormatServerDescription( int server )
void function OnServerSelected( var button )
{
- if ( NSIsRequestingServerList() || !NSMasterServerConnectionSuccessful() )
+ if ( NSIsRequestingServerList() || !NSMasterServerConnectionSuccessful() || NSGetServerCount() == 0 )
return
int serverIndex = file.page * BUTTONS_PER_PAGE + int ( Hud_GetScriptID( button ) )