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

Fix crowbar not showing in weapon list if there are empty weapon slots with lower id.

Same as ffe736252c
This commit is contained in:
Andrey Akhmichin 2022-06-04 20:13:28 +05:00
parent cf4d2a74dc
commit e2da6954c8
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0

View File

@ -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 );