fix sort asertion failure

This commit is contained in:
Glenn Maynard
2007-03-16 08:40:24 +00:00
parent 17aa18154d
commit bc8ad002ac
+1 -1
View File
@@ -46,7 +46,7 @@ public:
SongAndSteps() : pSong(NULL), pSteps(NULL) { }
SongAndSteps( Song *pSong_, Steps *pSteps_ ) : pSong(pSong_), pSteps(pSteps_) { }
bool operator==( const SongAndSteps& other ) const { return pSong==other.pSong && pSteps==other.pSteps; }
bool operator<( const SongAndSteps& other ) const { return pSong<=other.pSong && pSteps<=other.pSteps; }
bool operator<( const SongAndSteps& other ) const { if( pSong!=other.pSong ) return pSong<other.pSong; return pSteps<other.pSteps; }
};
namespace StepsUtil