From e2da6954c85e092d80ab182290aeaaa4d162f16f Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Sat, 4 Jun 2022 20:13:28 +0500 Subject: [PATCH] Fix crowbar not showing in weapon list if there are empty weapon slots with lower id. Same as https://github.com/SamVanheer/halflife-updated/commit/ffe736252c45ad953ad709572f0c9d42db06dd33 --- 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 94952df7..0e3d0a07 100644 --- a/cl_dll/ammo.cpp +++ b/cl_dll/ammo.cpp @@ -359,7 +359,7 @@ void CHudAmmo::Think( void ) { WEAPON *p = gWR.GetWeapon( i ); - if( p ) + if( p && p->iId ) { if( gHUD.m_iWeaponBits & ( 1 << p->iId ) ) gWR.PickupWeapon( p );