mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Merge 09a90f4a00
This commit is contained in:
parent
075fd29030
commit
5a2dccb978
@ -799,13 +799,13 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit )
|
|||||||
for( i = 0; i < MAX_ITEM_TYPES; i++ )
|
for( i = 0; i < MAX_ITEM_TYPES; i++ )
|
||||||
{
|
{
|
||||||
m_pActiveItem = m_rgpPlayerItems[i];
|
m_pActiveItem = m_rgpPlayerItems[i];
|
||||||
|
m_rgpPlayerItems[i] = NULL;
|
||||||
while( m_pActiveItem )
|
while( m_pActiveItem )
|
||||||
{
|
{
|
||||||
pPendingItem = m_pActiveItem->m_pNext;
|
pPendingItem = m_pActiveItem->m_pNext;
|
||||||
m_pActiveItem->Drop();
|
m_pActiveItem->Drop();
|
||||||
m_pActiveItem = pPendingItem;
|
m_pActiveItem = pPendingItem;
|
||||||
}
|
}
|
||||||
m_rgpPlayerItems[i] = NULL;
|
|
||||||
}
|
}
|
||||||
m_pActiveItem = NULL;
|
m_pActiveItem = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user