Skip to content

Commit

Permalink
CCharacter::IsSnappingCharacterInView: Add missing const
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Oct 6, 2023
1 parent 14407d4 commit ec05c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/entities/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ bool CCharacter::IsSnappingCharacterInView(int SnappingClientID)
{
for(const auto &AttachedPlayerID : m_Core.m_AttachedPlayers)
{
CCharacter *pOtherPlayer = GameServer()->GetPlayerChar(AttachedPlayerID);
const CCharacter *pOtherPlayer = GameServer()->GetPlayerChar(AttachedPlayerID);
if(pOtherPlayer && pOtherPlayer->m_Core.HookedPlayer() == ID)
{
if(!NetworkClippedLine(SnappingClientID, m_Pos, pOtherPlayer->m_Pos))
Expand Down

0 comments on commit ec05c8e

Please sign in to comment.