From 27425facffc62b6164d20ff2c1270f2f0d1abe23 Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 24 Sep 2010 13:21:03 +0200 Subject: fixed last commit --- src/game/client/components/skins.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/game/client/components/skins.h') diff --git a/src/game/client/components/skins.h b/src/game/client/components/skins.h index 08e8c5e0..e1000e3a 100644 --- a/src/game/client/components/skins.h +++ b/src/game/client/components/skins.h @@ -1,7 +1,7 @@ #ifndef GAME_CLIENT_COMPONENTS_SKINS_H #define GAME_CLIENT_COMPONENTS_SKINS_H #include -#include +#include #include class CSkins : public CComponent @@ -12,8 +12,10 @@ public: { int m_OrgTexture; int m_ColorTexture; - char m_aName[32]; + char m_aName[24]; vec3 m_BloodColor; + + bool operator<(const CSkin &Other) { return str_comp(m_aName, Other.m_aName) < 0; } }; void Init(); @@ -24,7 +26,7 @@ public: int Find(const char *pName); private: - array m_aSkins; + sorted_array m_aSkins; static void SkinScan(const char *pName, int IsDir, void *pUser); }; -- cgit 1.4.1