From 8767d7276fc282e8991fdc5aeb23910a378f5f45 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 4 Jun 2004 06:18:30 +0000 Subject: [PATCH] fix random courses not showing up on ranking screen the first time through due to negative cached trails from before the random list was available --- stepmania/src/GameState.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 84517044c5..8839be4e86 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -162,6 +162,10 @@ void GameState::Reset() SONGMAN->UpdateBest(); SONGMAN->UpdateShuffled(); + /* We may have cached trails from before everything was loaded (eg. from before + * SongManager::UpdateBest could be called). Erase the cache. */ + SONGMAN->RegenRandomTrailEntries(); + g_vPlayedStageStats.clear(); FOREACH_PlayerNumber( p )