From 0fc2b8b5fa14ed49bff2f36d1954174b413030bc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 30 Oct 2004 07:40:31 +0000 Subject: [PATCH] fix no notes --- stepmania/src/Steps.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stepmania/src/Steps.cpp b/stepmania/src/Steps.cpp index 8f255a4109..ecc818076c 100644 --- a/stepmania/src/Steps.cpp +++ b/stepmania/src/Steps.cpp @@ -87,9 +87,11 @@ void Steps::SetSMNoteData( const CString ¬es_comp_ ) m_uHash = GetHashForString( notes_comp ); } +/* XXX: this function should pull data from cache, like Decompress(); but maybe + * we can just get rid of this ... */ void Steps::GetSMNoteData( CString ¬es_comp_out ) const { - if( !notes_comp.empty() ) + if( notes_comp.empty() ) { if( !notes ) { @@ -177,7 +179,7 @@ void Steps::Decompress() const return; } - if( !m_sFilename.empty() && notes_comp == NULL ) + if( !m_sFilename.empty() && notes_comp.empty() ) { /* We have data on disk and not in memory. Load it. */ Song s; @@ -202,7 +204,7 @@ void Steps::Decompress() const pSteps->GetSMNoteData( notes_comp ); } - if( notes_comp == NULL ) + if( notes_comp.empty() ) { /* there is no data, do nothing */ }