Skip to content

Commit

Permalink
Remove incorrect conditional check
Browse files Browse the repository at this point in the history
Resolves #134
  • Loading branch information
SamVanheer committed Mar 14, 2022
1 parent 3c1e84a commit 8bf424d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4601,7 +4601,7 @@ bool CBasePlayer::SwitchWeapon(CBasePlayerItem* pWeapon)

void CBasePlayer::EquipWeapon()
{
if (m_pActiveItem && (!FStringNull(pev->viewmodel) || !FStringNull(pev->weaponmodel)))
if (m_pActiveItem)
{
if ((!FStringNull(pev->viewmodel) || !FStringNull(pev->weaponmodel)))
{
Expand Down

0 comments on commit 8bf424d

Please sign in to comment.