Fixed mistake that caused steps from non-ssc or non-sm files have blank StepsTypeStr.

This commit is contained in:
Kyzentun
2014-11-23 01:50:58 -07:00
parent 9c4670033e
commit 1a51b06934
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -268,6 +268,10 @@ void Steps::TidyUpData()
{
LOG->Warn("Detected steps with unknown style '%s' in '%s'", m_StepsTypeStr.c_str(), m_pSong->m_sSongFileName.c_str());
}
else if(m_StepsTypeStr == "")
{
m_StepsTypeStr= GAMEMAN->GetStepsTypeInfo(m_StepsType).szName;
}
if( GetDifficulty() == Difficulty_Invalid )
SetDifficulty( StringToDifficulty(GetDescription()) );