Fix "exit" row

This commit is contained in:
Glenn Maynard
2003-09-29 04:22:59 +00:00
parent e57bbdc338
commit 8302aa9b4a
+9 -6
View File
@@ -472,13 +472,16 @@ void ScreenOptionsMaster::ExportOptions()
m_NextScreen = "";
const int row = this->GetCurrentRow();
const OptionRowHandler &hand = OptionRowHandlers[row];
if( hand.type == ROW_LIST )
if( row < (int) OptionRowHandlers.size() ) /* might be on "exit" */
{
const int sel = m_iSelectedOption[0][row];
const ModeChoice &mc = hand.ListEntries[sel];
if( mc.m_sScreen != "" )
m_NextScreen = mc.m_sScreen;
const OptionRowHandler &hand = OptionRowHandlers[row];
if( hand.type == ROW_LIST )
{
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) );