player_patches: fix last score not resetting to zero

This commit is contained in:
Hyper 2025-01-23 21:22:46 +00:00
parent 17d7b97dd6
commit f9440e2076

View file

@ -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.