Skip to content

Commit

Permalink
Fixed bug with lastinv (fix from 7561)
Browse files Browse the repository at this point in the history
  • Loading branch information
WPMGPRoSToTeMa authored Jul 15, 2017
1 parent 0c95e86 commit 99add5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6536,7 +6536,7 @@ BOOL EXT_FUNC CBasePlayer::__API_HOOK(RemovePlayerItem)(CBasePlayerItem *pItem)
pev->viewmodel = 0;
pev->weaponmodel = 0;
}
else if (m_pLastItem == pItem)
if (m_pLastItem == pItem)
m_pLastItem = NULL;

CBasePlayerItem *pPrev = m_rgpPlayerItems[pItem->iItemSlot()];
Expand Down

0 comments on commit 99add5f

Please sign in to comment.