Fix "exit" row
This commit is contained in:
@@ -472,13 +472,16 @@ void ScreenOptionsMaster::ExportOptions()
|
|||||||
m_NextScreen = "";
|
m_NextScreen = "";
|
||||||
|
|
||||||
const int row = this->GetCurrentRow();
|
const int row = this->GetCurrentRow();
|
||||||
const OptionRowHandler &hand = OptionRowHandlers[row];
|
if( row < (int) OptionRowHandlers.size() ) /* might be on "exit" */
|
||||||
if( hand.type == ROW_LIST )
|
|
||||||
{
|
{
|
||||||
const int sel = m_iSelectedOption[0][row];
|
const OptionRowHandler &hand = OptionRowHandlers[row];
|
||||||
const ModeChoice &mc = hand.ListEntries[sel];
|
if( hand.type == ROW_LIST )
|
||||||
if( mc.m_sScreen != "" )
|
{
|
||||||
m_NextScreen = mc.m_sScreen;
|
const int sel = m_iSelectedOption[0][row];
|
||||||
|
const ModeChoice &mc = hand.ListEntries[sel];
|
||||||
|
if( mc.m_sScreen != "" )
|
||||||
|
m_NextScreen = mc.m_sScreen;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NEXT_SCREEN(GAMESTATE->m_PlayMode) );
|
// NEXT_SCREEN(GAMESTATE->m_PlayMode) );
|
||||||
|
|||||||
Reference in New Issue
Block a user