Fix P2 crash.

This commit is contained in:
Glenn Maynard
2003-09-18 19:07:10 +00:00
parent 896dc0f8da
commit 3db159cf59
+4
View File
@@ -476,6 +476,10 @@ void ScreenOptions::UpdateText( PlayerNumber player_no, int iRow )
const OptionRow &row = m_OptionRow[iRow];
unsigned item_no = row.bOneChoiceForAllPlayers?0:player_no;
/* If player_no is 2 and there is no player 1: */
item_no = min( item_no, m_textItems[iRow].size()-1 );
m_textItems[iRow][item_no]->SetText( m_OptionRow[iRow].choices[iChoiceInRow] );
}