[Widelands-cvs] SF.net SVN: widelands:[4730] trunk/src/ui_basic/table.h
Status: Beta
Brought to you by:
sirver
From: <si...@us...> - 2009-11-28 15:41:25
|
Revision: 4730 http://widelands.svn.sourceforge.net/widelands/?rev=4730&view=rev Author: sigra Date: 2009-11-28 15:41:16 +0000 (Sat, 28 Nov 2009) Log Message: ----------- This would have caught the regression that was fixed in revision 4729. Revision Links: -------------- http://widelands.svn.sourceforge.net/widelands/?rev=4729&view=rev Modified Paths: -------------- trunk/src/ui_basic/table.h Modified: trunk/src/ui_basic/table.h =================================================================== --- trunk/src/ui_basic/table.h 2009-11-28 12:53:48 UTC (rev 4729) +++ trunk/src/ui_basic/table.h 2009-11-28 15:41:16 UTC (rev 4730) @@ -208,7 +208,8 @@ Entry_Record & get_selected_record() const { if (m_selection == no_selection_index()) throw No_Selection(); - return *m_entry_records[m_selection]; + assert(m_selection < m_entry_records.size()); + return *m_entry_records.at(m_selection); } void remove_selected() throw (No_Selection) { if (m_selection == no_selection_index()) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |