diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index 8b516f05..64424f5a 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -2130,10 +2130,10 @@ static qboolean UI_NetSource_HandleKey( int key ) ui_netSource.integer++; } - if( ui_netSource.integer >= numNetSources ) - ui_netSource.integer = 0; - else if( ui_netSource.integer < 0 ) + if( ui_netSource.integer < 0 ) ui_netSource.integer = numNetSources - 1; + else if( ui_netSource.integer >= numNetSources ) + ui_netSource.integer = 0; UI_BuildServerDisplayList( qtrue ); |