Range check option row index from lua in ScreenOptions:GetOptionRow to fix seg fault.

This commit is contained in:
Kyzentun
2015-01-12 13:08:38 -07:00
parent ce085034f2
commit b2ceb184fa
5 changed files with 19 additions and 1 deletions
+1
View File
@@ -98,6 +98,7 @@ protected:
bool AllAreOnLastRow() const;
OptionRow* GetRow( int iRow ) const { return m_pRows[iRow]; }
//void SetOptionRowFromName( const RString& nombre );
int GetNumRows() const { return static_cast<int>(m_pRows.size()); }
protected: // derived classes need access to these
enum Navigation { NAV_THREE_KEY, NAV_THREE_KEY_MENU, NAV_THREE_KEY_ALT, NAV_FIVE_KEY, NAV_TOGGLE_THREE_KEY, NAV_TOGGLE_FIVE_KEY };