mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-27 07:04:16 +00:00
Merge d6732ca079
This commit is contained in:
parent
2df762e705
commit
8455d69360
@ -3661,7 +3661,9 @@ int CBasePlayer::RemovePlayerItem( CBasePlayerItem *pItem )
|
||||
pev->viewmodel = 0;
|
||||
pev->weaponmodel = 0;
|
||||
}
|
||||
else if( m_pLastItem == pItem )
|
||||
|
||||
// In some cases an item can be both the active and last item, like for instance dropping all weapons and only having an exhaustible weapon left. - Solokiller
|
||||
if( m_pLastItem == pItem )
|
||||
m_pLastItem = NULL;
|
||||
|
||||
CBasePlayerItem *pPrev = m_rgpPlayerItems[pItem->iItemSlot()];
|
||||
|
Loading…
x
Reference in New Issue
Block a user