From 1a51b069342e0e9d03985b4227993043702dc93a Mon Sep 17 00:00:00 2001 From: Kyzentun Date: Sun, 23 Nov 2014 01:50:58 -0700 Subject: [PATCH] Fixed mistake that caused steps from non-ssc or non-sm files have blank StepsTypeStr. --- src/Song.cpp | 2 +- src/Steps.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Song.cpp b/src/Song.cpp index 27c20aa76f..30bc97265e 100644 --- a/src/Song.cpp +++ b/src/Song.cpp @@ -42,7 +42,7 @@ * @brief The internal version of the cache for StepMania. * * Increment this value to invalidate the current cache. */ -const int FILE_CACHE_VERSION = 221; +const int FILE_CACHE_VERSION = 222; /** @brief How long does a song sample last by default? */ const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f; diff --git a/src/Steps.cpp b/src/Steps.cpp index 1b672ffb2d..c7640e2e88 100644 --- a/src/Steps.cpp +++ b/src/Steps.cpp @@ -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()) );