diff options
| author | oy <Tom_Adams@web.de> | 2010-09-24 13:21:03 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-09-24 13:21:03 +0200 |
| commit | 27425facffc62b6164d20ff2c1270f2f0d1abe23 (patch) | |
| tree | 78ca1f1a196b2cbc24325dee454b21f3e64a1861 /src/game/client/components/skins.cpp | |
| parent | aa46c22e10f85285dae87454724d9b6ed161c9c3 (diff) | |
| download | zcatch-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.cpp | 4 |
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]; |