fix crash

This commit is contained in:
Glenn Maynard
2004-01-10 03:12:32 +00:00
parent f01621e935
commit cb1484d8f8
+7 -4
View File
@@ -592,10 +592,13 @@ void ScreenOptions::TweenCursor( PlayerNumber player_no )
highlight.TweenBarWidth( iWidth );
highlight.SetXY( (float)iX, (float)iY );
UtilCommand( m_sprLineHighlight[player_no], "ScreenOptions", "Change" );
if( m_Rows[iCurRow]->Type == Row::ROW_EXIT )
UtilCommand( m_sprLineHighlight[player_no], "ScreenOptions", "ChangeToExit" );
m_sprLineHighlight[player_no].SetY( (float)iY );
if( GAMESTATE->IsHumanPlayer(player_no) )
{
UtilCommand( m_sprLineHighlight[player_no], "ScreenOptions", "Change" );
if( m_Rows[iCurRow]->Type == Row::ROW_EXIT )
UtilCommand( m_sprLineHighlight[player_no], "ScreenOptions", "ChangeToExit" );
m_sprLineHighlight[player_no].SetY( (float)iY );
}
}
void ScreenOptions::UpdateText( PlayerNumber player_no, int iRow )