From a29018587fc497c25fdda39288401d63b5161d49 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 11 Jun 2004 21:34:30 +0000 Subject: [PATCH] SONGMAN->FlushCaches whenever deleting Steps* --- stepmania/src/Song.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index e47bbfe53b..1b66f3cf53 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -84,6 +84,9 @@ Song::~Song() SAFE_DELETE( m_vpSteps[i] ); m_vpSteps.clear(); + + /* We deleted some Steps*; clear stuff that used it. */ + SONGMAN->FlushCaches(); } /* Reset to an empty song. */ @@ -100,7 +103,7 @@ void Song::Reset() /* Courses cache Notes* pointers. On the off chance that this isn't the last * thing this screen does, clear that cache. */ - SONGMAN->Cleanup(); + SONGMAN->FlushCaches(); }