Skip to content

Commit

Permalink
Fixed typo into hook CBasePlayer::SwitchTeam
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Nov 18, 2022
1 parent 4e23c65 commit 7d9bd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reapi/src/hook_callback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ void CBasePlayer_SwitchTeam(IReGameHook_CBasePlayer_SwitchTeam *chain, CBasePlay
chain->callNext(getPrivate<CBasePlayer>(_pthis));
};

callVoidForward(RG_CBasePlayer_CanSwitchTeam, original, indexOfEdict(pthis->pev));
callVoidForward(RG_CBasePlayer_SwitchTeam, original, indexOfEdict(pthis->pev));
}

bool CBasePlayer_CanSwitchTeam(IReGameHook_CBasePlayer_CanSwitchTeam *chain, CBasePlayer *pthis, TeamName teamToSwap)
Expand Down

0 comments on commit 7d9bd65

Please sign in to comment.