From a9db8cc1f8f2b591dfed08401993d063387f79ab Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 28 Dec 2006 17:46:10 +0000 Subject: [PATCH] fix team orders menu --- code/q3_ui/ui_teamorders.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/q3_ui/ui_teamorders.c b/code/q3_ui/ui_teamorders.c index 7cf85f40..d116e016 100644 --- a/code/q3_ui/ui_teamorders.c +++ b/code/q3_ui/ui_teamorders.c @@ -295,7 +295,7 @@ static void UI_TeamOrdersMenu_BuildBotList( void ) { int numPlayers; int isBot; int n; - char playerTeam; + char playerTeam = '3'; char botTeam; char info[MAX_INFO_STRING]; @@ -315,8 +315,6 @@ static void UI_TeamOrdersMenu_BuildBotList( void ) { for( n = 0; n < numPlayers && teamOrdersMenuInfo.numBots < 9; n++ ) { trap_GetConfigString( CS_PLAYERS + n, info, MAX_INFO_STRING ); - playerTeam = TEAM_SPECTATOR; // bk001204 = possible uninit use - if( n == cs.clientNum ) { playerTeam = *Info_ValueForKey( info, "t" ); continue;