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.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/game/client/components/skins.cpp') 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]; -- cgit 1.4.1