Return StepsType_Invalid. Let callers handle invalid steps.

This commit is contained in:
Steve Checkoway
2007-06-01 05:04:50 +00:00
parent e8b931aa8e
commit 52abc1c874
+1 -3
View File
@@ -2614,9 +2614,7 @@ StepsType GameManager::StringToStepsType( RString sStepsType )
if( g_StepsTypes[i].szName == sStepsType )
return StepsType(i);
// invalid StepsType
LOG->Warn( "Invalid StepsType string '%s' encountered. Assuming this is 'dance-single'.", sStepsType.c_str() );
return STEPS_TYPE_DANCE_SINGLE;
return StepsType_Invalid;
}
RString GameManager::StepsTypeToString( StepsType st )