From ff58521763472356799dbee793d4f3a457f31589 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Sun, 20 Oct 2024 18:01:22 +0500 Subject: [PATCH] Reorder checks. --- cl_dll/ammo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cl_dll/ammo.cpp b/cl_dll/ammo.cpp index 68b0314e..f4c2e1cd 100644 --- a/cl_dll/ammo.cpp +++ b/cl_dll/ammo.cpp @@ -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++; }