Return StepsType_Invalid. Let callers handle invalid steps.
This commit is contained in:
@@ -2614,9 +2614,7 @@ StepsType GameManager::StringToStepsType( RString sStepsType )
|
|||||||
if( g_StepsTypes[i].szName == sStepsType )
|
if( g_StepsTypes[i].szName == sStepsType )
|
||||||
return StepsType(i);
|
return StepsType(i);
|
||||||
|
|
||||||
// invalid StepsType
|
return StepsType_Invalid;
|
||||||
LOG->Warn( "Invalid StepsType string '%s' encountered. Assuming this is 'dance-single'.", sStepsType.c_str() );
|
|
||||||
return STEPS_TYPE_DANCE_SINGLE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RString GameManager::StepsTypeToString( StepsType st )
|
RString GameManager::StepsTypeToString( StepsType st )
|
||||||
|
|||||||
Reference in New Issue
Block a user