mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
Fixed bug with lastinv (fix from 7561) (#173)
This commit is contained in:
parent
0c95e86089
commit
1eb385602a
@ -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()];
|
||||
|
Loading…
Reference in New Issue
Block a user