From 07aecfff8bacaccc1aad1516d342041e4a4aca87 Mon Sep 17 00:00:00 2001 From: tmp64 Date: Sun, 27 Feb 2022 16:10:35 +0700 Subject: [PATCH] Client: RPG: Fix prediction results being stored to a wrong pointer ValveSoftware/halflife#3163 --- src/game/client/hl/hl_weapons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/hl/hl_weapons.cpp b/src/game/client/hl/hl_weapons.cpp index 376503a9..858c746e 100644 --- a/src/game/client/hl/hl_weapons.cpp +++ b/src/game/client/hl/hl_weapons.cpp @@ -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