mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-08-27 06:12:27 +00: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:
parent
cf4d2a74dc
commit
e2da6954c8
@ -359,7 +359,7 @@ void CHudAmmo::Think( void )
|
|||||||
{
|
{
|
||||||
WEAPON *p = gWR.GetWeapon( i );
|
WEAPON *p = gWR.GetWeapon( i );
|
||||||
|
|
||||||
if( p )
|
if( p && p->iId )
|
||||||
{
|
{
|
||||||
if( gHUD.m_iWeaponBits & ( 1 << p->iId ) )
|
if( gHUD.m_iWeaponBits & ( 1 << p->iId ) )
|
||||||
gWR.PickupWeapon( p );
|
gWR.PickupWeapon( p );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user