From acbf2e9aa786b9db0f95ffa90be4fcea00554bde Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Sun, 17 Jul 2011 23:42:38 -0400 Subject: [PATCH] Another syntax bug, another cache force. ...alright, even I'm getting annoyed with this. --- src/NotesLoaderSM.cpp | 3 ++- src/Song.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NotesLoaderSM.cpp b/src/NotesLoaderSM.cpp index 9a5f276105..c74e867a18 100644 --- a/src/NotesLoaderSM.cpp +++ b/src/NotesLoaderSM.cpp @@ -133,7 +133,8 @@ void SMLoader::ProcessAttackString( vector & attacks, MsdFile::value_t { RString tmp = params[s]; Trim(tmp); - attacks.push_back( tmp ); + if (tmp.size() > 0) + attacks.push_back( tmp ); } } diff --git a/src/Song.cpp b/src/Song.cpp index 49b5f2bac4..da0b73bcfc 100644 --- a/src/Song.cpp +++ b/src/Song.cpp @@ -41,7 +41,7 @@ * @brief The internal version of the cache for StepMania. * * Increment this value to invalidate the current cache. */ -const int FILE_CACHE_VERSION = 194; +const int FILE_CACHE_VERSION = 195; /** @brief How long does a song sample last by default? */ const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;