From cf3916cd897dbf9f20086f90c205edc4e88b3e0a Mon Sep 17 00:00:00 2001 From: Thai Pangsakulyanont Date: Sun, 8 Jan 2012 18:58:45 +0700 Subject: [PATCH] don't adjust duplicate steps when loading from cache: another optimization. --- src/Song.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Song.cpp b/src/Song.cpp index bfc28da3b9..53214d23e1 100644 --- a/src/Song.cpp +++ b/src/Song.cpp @@ -826,7 +826,10 @@ void Song::TidyUpData( bool fromCache, bool duringCache ) /* Don't allow multiple Steps of the same StepsType and Difficulty (except * for edits). We should be able to use difficulty names as unique * identifiers for steps. */ - SongUtil::AdjustDuplicateSteps( this ); + if( !duringCache ) + { + SongUtil::AdjustDuplicateSteps( this ); + } } void Song::TranslateTitles()