about summary refs log tree commit diff
path: root/src/game/client/components/skins.cpp
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-03-16 21:31:55 +0100
committeroy <Tom_Adams@web.de>2011-03-16 21:31:55 +0100
commitb4bec5335960f78a0ad6ac6f0c491cb76375bd56 (patch)
tree50a90b68565f103198c670efe9c918ace4428e55 /src/game/client/components/skins.cpp
parent7412fabb9c74264010cd4ee43b2efddd326cafea (diff)
downloadzcatch-b4bec5335960f78a0ad6ac6f0c491cb76375bd56.tar.gz
zcatch-b4bec5335960f78a0ad6ac6f0c491cb76375bd56.zip
added clan name and country flag selector to the player settings
Diffstat (limited to 'src/game/client/components/skins.cpp')
-rw-r--r--src/game/client/components/skins.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/client/components/skins.cpp b/src/game/client/components/skins.cpp
index 6c845bb4..d8550da4 100644
--- a/src/game/client/components/skins.cpp
+++ b/src/game/client/components/skins.cpp
@@ -135,7 +135,7 @@ int CSkins::Num()
 
 const CSkins::CSkin *CSkins::Get(int Index)
 {
-	return &m_aSkins[Index%m_aSkins.size()];
+	return &m_aSkins[max(0, Index%m_aSkins.size())];
 }
 
 int CSkins::Find(const char *pName)