Skip to content

Commit

Permalink
Client: RPG: Fix prediction results being stored to a wrong pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
tmp64 committed Feb 27, 2022
1 parent 0e1d3b3 commit 07aecff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/client/hl/hl_weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -921,8 +921,8 @@ void HUD_WeaponsPostThink(local_state_s *from, local_state_s *to, usercmd_t *cmd

if (player.m_pActiveItem->m_iId == WEAPON_RPG)
{
from->client.vuser2[1] = ((CRpg *)player.m_pActiveItem)->m_fSpotActive;
from->client.vuser2[2] = ((CRpg *)player.m_pActiveItem)->m_cActiveRockets;
to->client.vuser2[1] = ((CRpg *)player.m_pActiveItem)->m_fSpotActive;
to->client.vuser2[2] = ((CRpg *)player.m_pActiveItem)->m_cActiveRockets;
}

// Make sure that weapon animation matches what the game .dll is telling us
Expand Down

0 comments on commit 07aecff

Please sign in to comment.