mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-15 16:18:08 +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->viewmodel = 0;
|
||||||
pev->weaponmodel = 0;
|
pev->weaponmodel = 0;
|
||||||
}
|
}
|
||||||
else if (m_pLastItem == pItem)
|
#ifndef REGAMEDLL_FIXES
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
if (m_pLastItem == pItem)
|
||||||
m_pLastItem = NULL;
|
m_pLastItem = NULL;
|
||||||
|
|
||||||
CBasePlayerItem *pPrev = m_rgpPlayerItems[pItem->iItemSlot()];
|
CBasePlayerItem *pPrev = m_rgpPlayerItems[pItem->iItemSlot()];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user