Fixed bug with lastinv (fix from 7561) (#173)

This commit is contained in:
Artem Golubikhin 2017-07-17 14:42:21 +03:00 committed by Dmitry Novikov
parent 0c95e86089
commit 1eb385602a

View File

@ -6536,7 +6536,10 @@ BOOL EXT_FUNC CBasePlayer::__API_HOOK(RemovePlayerItem)(CBasePlayerItem *pItem)
pev->viewmodel = 0;
pev->weaponmodel = 0;
}
else if (m_pLastItem == pItem)
#ifndef REGAMEDLL_FIXES
else
#endif
if (m_pLastItem == pItem)
m_pLastItem = NULL;
CBasePlayerItem *pPrev = m_rgpPlayerItems[pItem->iItemSlot()];