diff options
Diffstat (limited to 'code/q3_ui/ui_startserver.c')
-rw-r--r-- | code/q3_ui/ui_startserver.c | 6 |
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]) ); |