fix team orders menu
This commit is contained in:
parent
bb3b3be38a
commit
a9db8cc1f8
1 changed files with 1 additions and 3 deletions
|
@ -295,7 +295,7 @@ static void UI_TeamOrdersMenu_BuildBotList( void ) {
|
||||||
int numPlayers;
|
int numPlayers;
|
||||||
int isBot;
|
int isBot;
|
||||||
int n;
|
int n;
|
||||||
char playerTeam;
|
char playerTeam = '3';
|
||||||
char botTeam;
|
char botTeam;
|
||||||
char info[MAX_INFO_STRING];
|
char info[MAX_INFO_STRING];
|
||||||
|
|
||||||
|
@ -315,8 +315,6 @@ static void UI_TeamOrdersMenu_BuildBotList( void ) {
|
||||||
for( n = 0; n < numPlayers && teamOrdersMenuInfo.numBots < 9; n++ ) {
|
for( n = 0; n < numPlayers && teamOrdersMenuInfo.numBots < 9; n++ ) {
|
||||||
trap_GetConfigString( CS_PLAYERS + n, info, MAX_INFO_STRING );
|
trap_GetConfigString( CS_PLAYERS + n, info, MAX_INFO_STRING );
|
||||||
|
|
||||||
playerTeam = TEAM_SPECTATOR; // bk001204 = possible uninit use
|
|
||||||
|
|
||||||
if( n == cs.clientNum ) {
|
if( n == cs.clientNum ) {
|
||||||
playerTeam = *Info_ValueForKey( info, "t" );
|
playerTeam = *Info_ValueForKey( info, "t" );
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue