From f9440e2076fbc42a92eb6ca05c173fb30048329b Mon Sep 17 00:00:00 2001 From: Hyper <34012267+hyperbx@users.noreply.github.com> Date: Thu, 23 Jan 2025 21:22:46 +0000 Subject: [PATCH] player_patches: fix last score not resetting to zero --- UnleashedRecomp/patches/player_patches.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/UnleashedRecomp/patches/player_patches.cpp b/UnleashedRecomp/patches/player_patches.cpp index 67a46db..0208658 100644 --- a/UnleashedRecomp/patches/player_patches.cpp +++ b/UnleashedRecomp/patches/player_patches.cpp @@ -50,11 +50,8 @@ PPC_FUNC(sub_8245F048) void ResetScoreOnRestartMidAsmHook() { - if (auto pGameDocument = SWA::CGameDocument::GetInstance()) - { - pGameDocument->m_pMember->m_ScoreInfo.EnemyScore = 0; - pGameDocument->m_pMember->m_ScoreInfo.TrickScore = 0; - } + g_lastEnemyScore = 0; + g_lastTrickScore = 0; } // Dark Gaia energy change hook.