mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
Sort skins without case (fixes #3213)
This commit is contained in:
parent
641d4db676
commit
055eadd88d
|
@ -42,10 +42,10 @@ struct CSkin
|
||||||
char m_aName[24];
|
char m_aName[24];
|
||||||
ColorRGBA m_BloodColor;
|
ColorRGBA m_BloodColor;
|
||||||
|
|
||||||
bool operator<(const CSkin &Other) const { return str_comp(m_aName, Other.m_aName) < 0; }
|
bool operator<(const CSkin &Other) const { return str_comp_nocase(m_aName, Other.m_aName) < 0; }
|
||||||
|
|
||||||
bool operator<(const char *pOther) const { return str_comp(m_aName, pOther) < 0; }
|
bool operator<(const char *pOther) const { return str_comp_nocase(m_aName, pOther) < 0; }
|
||||||
bool operator==(const char *pOther) const { return !str_comp(m_aName, pOther); }
|
bool operator==(const char *pOther) const { return !str_comp_nocase(m_aName, pOther); }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue