fix AccumStageStats doesn't get cleared between games
This commit is contained in:
@@ -190,7 +190,7 @@ void GameState::Reset()
|
|||||||
* SongManager::UpdateBest could be called). Erase the cache. */
|
* SongManager::UpdateBest could be called). Erase the cache. */
|
||||||
SONGMAN->RegenerateNonFixedCourses();
|
SONGMAN->RegenerateNonFixedCourses();
|
||||||
|
|
||||||
STATSMAN->m_vPlayedStageStats.clear();
|
STATSMAN->Reset();
|
||||||
|
|
||||||
m_SongOptions.Init();
|
m_SongOptions.Init();
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,12 @@ class StatsManager
|
|||||||
public:
|
public:
|
||||||
StatsManager();
|
StatsManager();
|
||||||
|
|
||||||
|
void Reset()
|
||||||
|
{
|
||||||
|
m_vPlayedStageStats.clear();
|
||||||
|
CalcAccumStageStats();
|
||||||
|
}
|
||||||
|
|
||||||
StageStats m_CurStageStats; // current stage (not necessarily passed if Extra Stage)
|
StageStats m_CurStageStats; // current stage (not necessarily passed if Extra Stage)
|
||||||
vector<StageStats> m_vPlayedStageStats;
|
vector<StageStats> m_vPlayedStageStats;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user