don't assert on valid return values from strcmp (fix crash in Linux)

This commit is contained in:
Chris Danford
2005-04-23 11:06:28 +00:00
parent aa8b96ab87
commit c2c3e00e31
+7 -7
View File
@@ -101,13 +101,13 @@ struct NoteSkinAndPath
CString sPath;
bool operator<( const NoteSkinAndPath &other ) const
{
switch( strcmp(sNoteSkin, other.sNoteSkin) )
{
case -1: return true;
case 0: return sPath < other.sPath;
case 1: return false;
default: ASSERT(0); return false;
}
int cmp = strcmp(sNoteSkin, other.sNoteSkin);
if( cmp < 0 )
return true;
else if( cmp == 0 )
return sPath < other.sPath;
else
return false;
}
};