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>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.cpp
parentaa46c22e10f85285dae87454724d9b6ed161c9c3 (diff)
downloadzcatch-27425facffc62b6164d20ff2c1270f2f0d1abe23.tar.gz
zcatch-27425facffc62b6164d20ff2c1270f2f0d1abe23.zip
fixed last commit
Diffstat (limited to 'src/game/client/components/skins.cpp')
-rw-r--r--src/game/client/components/skins.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/client/components/skins.cpp b/src/game/client/components/skins.cpp
index b5cb8239..757c2008 100644
--- a/src/game/client/components/skins.cpp
+++ b/src/game/client/components/skins.cpp
@@ -14,9 +14,7 @@ void CSkins::SkinScan(const char *pName, int IsDir, void *pUser)
 {
 	CSkins *pSelf = (CSkins *)pUser;
 	int l = str_length(pName);
-	if(l < 4 || IsDir)
-		return;
-	if(str_comp(pName+l-4, ".png") != 0)
+	if(l < 4 || IsDir || str_comp(pName+l-4, ".png") != 0)
 		return;
 		
 	char aBuf[512];