better asserts

tolerate a list not importing any options (eg. Fail30Misses selected but
not available)
This commit is contained in:
Glenn Maynard
2005-03-11 02:01:55 +00:00
parent a22b272aeb
commit 295bb05566
2 changed files with 11 additions and 4 deletions
+6
View File
@@ -190,6 +190,12 @@ public:
}
}
if( UseFallbackOption && FallbackOption == -1 )
{
LOG->Warn( "No options in row \"%s\" were selected, and no fallback row found; selected entry 0", m_sName.c_str() );
FallbackOption = 0;
}
if( def.selectType == SELECT_ONE &&
UseFallbackOption &&
FallbackOption != -1 )