fix reading #DISPLAYBPM from DWIs

This commit is contained in:
Glenn Maynard
2003-06-12 20:14:40 +00:00
parent 3d42a56288
commit 26de0ae0a4
+1 -1
View File
@@ -320,7 +320,7 @@ bool DWILoader::LoadFromDWIFile( CString sPath, Song &out )
{
out.m_DisplayBPMType = Song::DISPLAY_SPECIFIED;
}
else if( sscanf( sParams[1], "%f", &out.m_fDisplayBPMMin ) != 1 )
else if( sscanf( sParams[1], "%f", &out.m_fDisplayBPMMin ) == 1 )
{
out.m_DisplayBPMType = Song::DISPLAY_SPECIFIED;
out.m_fDisplayBPMMax = out.m_fDisplayBPMMin;