diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 5946c2012a..18aa36e20e 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -135,7 +135,7 @@ void Course::LoadFromCRSFile( CString sPath ) m_iLives = atoi( sParams[1] ); else if( 0 == stricmp(sValueName, "GAINSECONDS") ) - fGainSeconds = (float)atof( sParams[1] ); + fGainSeconds = strtof( sParams[1], NULL ); else if( 0 == stricmp(sValueName, "METER") ) {