Resize the answers during load menu. Fixes the crash in ScreenEdit when 'b' is pressed.

This commit is contained in:
Steve Checkoway
2006-07-14 21:27:18 +00:00
parent bf5deb1ee3
commit d873b24bfc
+1
View File
@@ -66,6 +66,7 @@ void ScreenMiniMenu::LoadMenu( const MenuDef* pDef )
{
m_vMenuRows = pDef->rows;
s_viLastAnswers.resize( m_vMenuRows.size() );
// Convert from m_vMenuRows to vector<OptionRowDefinition>
vector<OptionRowHandler*> vHands;
for( unsigned r=0; r<m_vMenuRows.size(); r++ )