From 3674e3f154accaa8b004ef6a733040b7c7ca14c7 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Lortie Date: Sun, 21 Nov 2021 05:20:38 -0500 Subject: [PATCH] Fixed RPG client prediction results stored in wrong pointer. (#206) --- cl_dll/hl/hl_weapons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_dll/hl/hl_weapons.cpp b/cl_dll/hl/hl_weapons.cpp index 536392e3..b982fa7f 100644 --- a/cl_dll/hl/hl_weapons.cpp +++ b/cl_dll/hl/hl_weapons.cpp @@ -899,8 +899,8 @@ void HUD_WeaponsPostThink( local_state_s *from, local_state_s *to, usercmd_t *cm 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