fix assert b/c rowCode not set when navigating mini menu with P2
This commit is contained in:
@@ -115,6 +115,11 @@ void ScreenMiniMenu::AfterChangeValueOrRow( PlayerNumber pn )
|
||||
vpns.push_back( GAMESTATE->m_MasterPlayerNumber );
|
||||
for( unsigned i=0; i<m_pRows.size(); i++ )
|
||||
ExportOptions( i, vpns );
|
||||
|
||||
{
|
||||
int iCurRow = GetCurrentRow( pn );
|
||||
s_iLastRowCode = m_vMenuRows[iCurRow].iRowCode;
|
||||
}
|
||||
|
||||
// Changing one option can affect whether other options are available.
|
||||
for( unsigned i=0; i<m_pRows.size(); i++ )
|
||||
@@ -141,8 +146,6 @@ void ScreenMiniMenu::ImportOptions( int r, const vector<PlayerNumber> &vpns )
|
||||
|
||||
void ScreenMiniMenu::ExportOptions( int r, const vector<PlayerNumber> &vpns )
|
||||
{
|
||||
if( r == GetCurrentRow() )
|
||||
s_iLastRowCode = m_vMenuRows[r].iRowCode;
|
||||
s_viLastAnswers.resize( m_vMenuRows.size() );
|
||||
s_viLastAnswers[r] = m_pRows[r]->GetOneSharedSelection( true );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user