From 726470abfd8549b609c702551e5a58a6dc00e08d Mon Sep 17 00:00:00 2001 From: Kevin <68612569+diyelectromusic@users.noreply.github.com> Date: Mon, 8 Jan 2024 09:02:46 -0800 Subject: [PATCH] Fix for issue where wrong performance is selected [L] on new save. --- src/performanceconfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/performanceconfig.cpp b/src/performanceconfig.cpp index 168a0e0..ed98796 100644 --- a/src/performanceconfig.cpp +++ b/src/performanceconfig.cpp @@ -899,7 +899,6 @@ bool CPerformanceConfig::CreateNewPerformanceFile(void) std::string sPerformanceName = NewPerformanceName; NewPerformanceName=""; - m_nActualPerformance=m_nLastPerformance; unsigned nNewPerformance = m_nLastPerformance + 1; std::string nFileName; std::string nPath; @@ -943,6 +942,7 @@ bool CPerformanceConfig::CreateNewPerformanceFile(void) } m_nLastPerformance = nNewPerformance; + m_nActualPerformance = nNewPerformance; new (&m_Properties) CPropertiesFatFsFile(nFileName.c_str(), m_pFileSystem); return true;