From 8f7e6894dc9e9008e4a58455aba14f7ba15d8108 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 26 Apr 2004 00:08:51 +0000 Subject: [PATCH] fix StepsID::operator< beware: invalid < operations (where arhs.a) return false; + COMP(st); + COMP(dc); + COMP(sDescription); + COMP(uHash); +#undef COMP + return false; +} diff --git a/stepmania/src/StepsUtil.h b/stepmania/src/StepsUtil.h index ecd0ad6a9c..200056b20a 100644 --- a/stepmania/src/StepsUtil.h +++ b/stepmania/src/StepsUtil.h @@ -44,10 +44,7 @@ public: void Unset() { FromSteps(NULL); } void FromSteps( const Steps *p ); Steps *ToSteps( const Song *p, bool bAllowNull ) const; - bool operator<( const StepsID &other ) const - { - return st < other.st || dc < other.dc || sDescription < other.sDescription || uHash < other.uHash; - } + bool operator<( const StepsID &rhs ) const; XNode* CreateNode() const; void LoadFromNode( const XNode* pNode );