From 055eadd88d765a9410773f78036c5b521b48f1ad Mon Sep 17 00:00:00 2001 From: def Date: Fri, 30 Oct 2020 10:05:46 +0100 Subject: [PATCH] Sort skins without case (fixes #3213) --- src/game/client/skin.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game/client/skin.h b/src/game/client/skin.h index a924bd7e5..423869e01 100644 --- a/src/game/client/skin.h +++ b/src/game/client/skin.h @@ -42,10 +42,10 @@ struct CSkin char m_aName[24]; 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(m_aName, pOther); } + bool operator<(const char *pOther) const { return str_comp_nocase(m_aName, pOther) < 0; } + bool operator==(const char *pOther) const { return !str_comp_nocase(m_aName, pOther); } }; #endif