If the steps type is invalid, warn and skip it.

This commit is contained in:
Steve Checkoway
2007-06-01 05:04:01 +00:00
parent 666d241a4f
commit f2535d1c83
+3
View File
@@ -96,7 +96,10 @@ static void RemoveStepsTypes( vector<StepsType>& inout, RString sStepsTypesToRem
{
StepsType st = GameManager::StringToStepsType(*i);
if( st == StepsType_Invalid )
{
LOG->Warn( "Invalid StepsType value '%s' in '%s'", i->c_str(), sStepsTypesToRemove.c_str() );
continue;
}
const vector<StepsType>::iterator iter = find( inout.begin(), inout.end(), st );
if( iter != inout.end() )