Prevent out of bound crashes

This commit is contained in:
Josh Allen
2006-11-24 15:34:51 +00:00
parent b0e10682c8
commit 529444f44c
+2 -1
View File
@@ -68,7 +68,8 @@ void ScreenNetEvaluation::RedoUserTexts()
m_iCurrentPlayer = 0;
for( int i=0; i<m_iActivePlayers; ++i )
this->RemoveChild( &m_textUsers[i] );
if (i < m_textUsers.size())
this->RemoveChild( &m_textUsers[i] );
m_textUsers.resize(m_iActivePlayers);