don't reset Guid when clearing machine stats

This commit is contained in:
Chris Danford
2004-08-22 16:05:28 +00:00
parent f75c44bd02
commit 7902e9e122
+9 -1
View File
@@ -8,7 +8,15 @@
ScreenClearMachineStats::ScreenClearMachineStats( CString sName ): Screen( sName )
{
PROFILEMAN->GetMachineProfile()->InitAll();
Profile* pProfile = PROFILEMAN->GetMachineProfile();
// don't reset the Guid
CString sGuid = pProfile->m_sGuid;
pProfile->InitAll();
pProfile->m_sGuid = sGuid;
PROFILEMAN->SaveMachineProfile();
SCREENMAN->SystemMessage( "Machine stats cleared." );