2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-21 17:36:18 +01:00

Reorder checks.

This commit is contained in:
Andrey Akhmichin 2024-10-20 18:01:22 +05:00
parent fb274f1212
commit ff58521763

View File

@ -1192,7 +1192,7 @@ client_sprite_t *GetSpriteList( client_sprite_t *pList, const char *psz, int iRe
while( i-- )
{
if( ( !strcmp( psz, p->szName ) ) && ( p->iRes == iRes ) )
if( p->iRes == iRes && !strcmp( psz, p->szName ))
return p;
p++;
}