From 3022600bf30823c9740b8df918a6b5b95155c7a7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 10 Sep 2002 11:33:08 +0000 Subject: [PATCH] "i'm going to bed--oh wait, I just introduced a stupid bug" commit. --- stepmania/src/Song.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 3e977fddc1..87ebf2913e 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -993,7 +993,7 @@ int Song::GetNumTimesPlayed() const CString Song::GetMusicPath() const { - if(m_sSongDir.Left(PREFSMAN->m_DWIPath.GetLength()) == PREFSMAN->m_DWIPath) + if(m_sSongDir != "" && m_sSongDir.Left(PREFSMAN->m_DWIPath.GetLength()) == PREFSMAN->m_DWIPath) return PREFSMAN->m_DWIPath+"\\"+m_sMusicFile; return m_sMusicFile.Left(2) == ".\\"? m_sMusicFile : m_sSongDir+m_sMusicFile; @@ -1010,7 +1010,7 @@ CString Song::GetBackgroundPath() const } CString Song::GetCDTitlePath() const { - if(m_sSongDir.Left(PREFSMAN->m_DWIPath.GetLength()) == PREFSMAN->m_DWIPath) + if(m_sSongDir != "" && m_sSongDir.Left(PREFSMAN->m_DWIPath.GetLength()) == PREFSMAN->m_DWIPath) return PREFSMAN->m_DWIPath+"\\"+m_sCDTitleFile; return m_sMusicFile.Left(2) == ".\\" ? m_sCDTitleFile : m_sSongDir+m_sCDTitleFile;