aboutsummaryrefslogtreecommitdiffstats
path: root/code/q3_ui/ui_startserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/q3_ui/ui_startserver.c')
-rw-r--r--code/q3_ui/ui_startserver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/code/q3_ui/ui_startserver.c b/code/q3_ui/ui_startserver.c
index ddb2533..2c56a10 100644
--- a/code/q3_ui/ui_startserver.c
+++ b/code/q3_ui/ui_startserver.c
@@ -1092,7 +1092,11 @@ static void ServerOptions_InitBotNames( void ) {
*p++ = 0;
}
- botInfo = UI_GetBotInfoByName( bot );
+ botInfo = UI_GetBotInfoByName( bot );
+ if( !botInfo )
+ {
+ botInfo = UI_GetBotInfoByNumber( count );
+ }
bot = Info_ValueForKey( botInfo, "name" );
Q_strncpyz( s_serveroptions.playerNameBuffers[count], bot, sizeof(s_serveroptions.playerNameBuffers[count]) );