From 842810c0dd8ee7978f4a35f5759658d7a2688680 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Fri, 23 Dec 2011 02:54:51 -0600 Subject: [PATCH] [Song] Fixed a bug where a sample start of 0 wouldn't work. --- Docs/Changelog_sm5.txt | 4 ++++ src/Song.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index f8f3654d0b..4661fb0254 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -8,6 +8,10 @@ ________________________________________________________________________________ StepMania 5.0 $next | 20111xxx -------------------------------------------------------------------------------- +2011/12/23 +---------- +* [Song] Fixed a bug where a sample start of 0 wouldn't work. [AJ] + 2011/12/22 ---------- * [LuaManager] Added ProductFamily() Lua binding. [AJ] diff --git a/src/Song.cpp b/src/Song.cpp index 3973a7575a..99bed8218f 100644 --- a/src/Song.cpp +++ b/src/Song.cpp @@ -563,7 +563,7 @@ void Song::TidyUpData( bool fromCache, bool duringCache ) TranslateTitles(); if( m_fMusicSampleStartSeconds == -1 || - m_fMusicSampleStartSeconds == 0 || + m_fMusicSampleLengthSeconds == 0 || m_fMusicSampleStartSeconds+m_fMusicSampleLengthSeconds > this->m_fMusicLengthSeconds ) { const TimingData &timing = this->m_SongTiming;