fix stale PROFILEMAN pointer on exception
This commit is contained in:
@@ -55,10 +55,16 @@ ProfileManager::ProfileManager()
|
|||||||
{
|
{
|
||||||
PROFILEMAN = this;
|
PROFILEMAN = this;
|
||||||
|
|
||||||
for( int p=0; p<NUM_PLAYERS; p++ )
|
try
|
||||||
m_bWasLoadedFromMemoryCard[p] = false;
|
{
|
||||||
|
for( int p=0; p<NUM_PLAYERS; p++ )
|
||||||
|
m_bWasLoadedFromMemoryCard[p] = false;
|
||||||
|
|
||||||
LoadMachineProfile();
|
LoadMachineProfile();
|
||||||
|
} catch(...) {
|
||||||
|
PROFILEMAN = NULL;
|
||||||
|
throw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ProfileManager::~ProfileManager()
|
ProfileManager::~ProfileManager()
|
||||||
|
|||||||
Reference in New Issue
Block a user