about summary refs log tree commit diff
path: root/src/game/client/components/skins.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2010-09-24 13:21:03 +0200
committeroy <Tom_Adams@web.de>2010-09-24 13:21:03 +0200
commit27425facffc62b6164d20ff2c1270f2f0d1abe23 (patch)
tree78ca1f1a196b2cbc24325dee454b21f3e64a1861 /src/game/client/components/skins.h
parentaa46c22e10f85285dae87454724d9b6ed161c9c3 (diff)
downloadzcatch-27425facffc62b6164d20ff2c1270f2f0d1abe23.tar.gz
zcatch-27425facffc62b6164d20ff2c1270f2f0d1abe23.zip
fixed last commit
Diffstat (limited to 'src/game/client/components/skins.h')
-rw-r--r--src/game/client/components/skins.h8
1 files changed, 5 insertions, 3 deletions
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 <base/vmath.h>
-#include <base/tl/array.h>
+#include <base/tl/sorted_array.h>
 #include <game/client/component.h>
 
 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<CSkin> m_aSkins;
+	sorted_array<CSkin> m_aSkins;
 
 	static void SkinScan(const char *pName, int IsDir, void *pUser);
 };