From 8ec601a078c4d98e77436868baacd1ec586ed0ff Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 17 Feb 2003 00:14:48 +0000 Subject: [PATCH] fix this GetNotes overload; the edit menu was ending up using a different one and getting mixed up --- stepmania/src/Song.cpp | 4 ++-- stepmania/src/song.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index c81cd8d40a..7d6024ec31 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -642,10 +642,10 @@ void Song::GetNotes( vector& arrayAddTo, NotesType nt, Difficulty dc, in arrayAddTo.push_back( m_apNotes[i] ); } -Notes* Song::GetNotes( NotesType nt, Difficulty dc ) const +Notes* Song::GetNotes( NotesType nt, Difficulty dc, bool bIncludeAutoGen ) const { vector vNotes; - GetNotes( vNotes, nt, dc ); + GetNotes( vNotes, nt, dc, -1, -1, "", bIncludeAutoGen ); if( vNotes.size() == 0 ) return NULL; else diff --git a/stepmania/src/song.h b/stepmania/src/song.h index 93cfee584e..67fc41c759 100644 --- a/stepmania/src/song.h +++ b/stepmania/src/song.h @@ -206,7 +206,7 @@ public: bool SongHasNotesType( NotesType nt ) const; bool SongHasNotesTypeAndDifficulty( NotesType nt, Difficulty dc ) const; void GetNotes( vector& arrayAddTo, NotesType nt, Difficulty dc = DIFFICULTY_INVALID, int iMeterLow = -1, int iMeterHigh = -1, CString sDescription = "", bool bIncludeAutoGen = true ) const; - Notes* GetNotes( NotesType nt, Difficulty dc ) const; + Notes* GetNotes( NotesType nt, Difficulty dc, bool bIncludeAutoGen = true ) const; Notes* GetNotes( NotesType nt, int iMeterLow, int iMeterHigh ) const; Notes* GetNotes( NotesType nt, CString sDescription ) const; Notes* GetClosestNotes( NotesType nt, Difficulty dc ) const;