fix stale PROFILEMAN pointer on exception

This commit is contained in:
Glenn Maynard
2004-02-20 04:39:32 +00:00
parent 6acfd7a22e
commit 1d580d2a0f
+9 -3
View File
@@ -55,10 +55,16 @@ ProfileManager::ProfileManager()
{
PROFILEMAN = this;
for( int p=0; p<NUM_PLAYERS; p++ )
m_bWasLoadedFromMemoryCard[p] = false;
try
{
for( int p=0; p<NUM_PLAYERS; p++ )
m_bWasLoadedFromMemoryCard[p] = false;
LoadMachineProfile();
LoadMachineProfile();
} catch(...) {
PROFILEMAN = NULL;
throw;
}
}
ProfileManager::~ProfileManager()