From 52abc1c874a8d8a46ad3f4c031ffedc13961f781 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 1 Jun 2007 05:04:50 +0000 Subject: [PATCH] Return StepsType_Invalid. Let callers handle invalid steps. --- stepmania/src/GameManager.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stepmania/src/GameManager.cpp b/stepmania/src/GameManager.cpp index f951c28b6f..d020850765 100644 --- a/stepmania/src/GameManager.cpp +++ b/stepmania/src/GameManager.cpp @@ -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 )