Don't rebuild the vector of human players for each row.
This commit is contained in:
@@ -241,15 +241,15 @@ void ScreenOptions::InitMenu( const vector<OptionRowHandler*> &vHands )
|
||||
void ScreenOptions::RestartOptions()
|
||||
{
|
||||
m_exprRowPositionTransformFunction.ClearCache();
|
||||
|
||||
vector<PlayerNumber> vpns;
|
||||
FOREACH_HumanPlayer( p )
|
||||
vpns.push_back( p );
|
||||
|
||||
for( unsigned r=0; r<m_pRows.size(); r++ ) // foreach row
|
||||
{
|
||||
OptionRow *pRow = m_pRows[r];
|
||||
pRow->Reload();
|
||||
|
||||
vector<PlayerNumber> vpns;
|
||||
FOREACH_HumanPlayer( p )
|
||||
vpns.push_back( p );
|
||||
this->ImportOptions( r, vpns );
|
||||
|
||||
// HACK: Process disabled players, too, to hide inactive underlines.
|
||||
|
||||
Reference in New Issue
Block a user