Fix "exit" row
This commit is contained in:
@@ -472,6 +472,8 @@ void ScreenOptionsMaster::ExportOptions()
|
|||||||
m_NextScreen = "";
|
m_NextScreen = "";
|
||||||
|
|
||||||
const int row = this->GetCurrentRow();
|
const int row = this->GetCurrentRow();
|
||||||
|
if( row < (int) OptionRowHandlers.size() ) /* might be on "exit" */
|
||||||
|
{
|
||||||
const OptionRowHandler &hand = OptionRowHandlers[row];
|
const OptionRowHandler &hand = OptionRowHandlers[row];
|
||||||
if( hand.type == ROW_LIST )
|
if( hand.type == ROW_LIST )
|
||||||
{
|
{
|
||||||
@@ -480,6 +482,7 @@ void ScreenOptionsMaster::ExportOptions()
|
|||||||
if( mc.m_sScreen != "" )
|
if( mc.m_sScreen != "" )
|
||||||
m_NextScreen = mc.m_sScreen;
|
m_NextScreen = mc.m_sScreen;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// NEXT_SCREEN(GAMESTATE->m_PlayMode) );
|
// NEXT_SCREEN(GAMESTATE->m_PlayMode) );
|
||||||
// XXX: handle different destinations based on play mode?
|
// XXX: handle different destinations based on play mode?
|
||||||
|
|||||||
Reference in New Issue
Block a user