From 674ddf419a29eb544e9fff82a112781dbb3b31fc Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 13 Aug 2005 01:38:35 +0000 Subject: [PATCH] simplify --- stepmania/src/ProfileManager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ProfileManager.cpp b/stepmania/src/ProfileManager.cpp index c309b730ba..91715d83b7 100644 --- a/stepmania/src/ProfileManager.cpp +++ b/stepmania/src/ProfileManager.cpp @@ -442,9 +442,8 @@ void ProfileManager::LoadMachineProfile() Profile::LoadResult lr = m_pMachineProfile->LoadAllFromDir(MACHINE_PROFILE_DIR, false); if( lr == Profile::failed_no_profile ) { - Profile *pProfile = Profile::CreateNewProfile( MACHINE_PROFILE_DIR, "Machine", false ); - delete m_pMachineProfile; - m_pMachineProfile = pProfile; + m_pMachineProfile->InitAll(); + m_pMachineProfile->SaveAllToDir( MACHINE_PROFILE_DIR, PREFSMAN->m_bSignProfileData ); } // If the machine name has changed, make sure we use the new name