sanity check
fix crash
This commit is contained in:
@@ -76,6 +76,9 @@ void GameState::Reset()
|
|||||||
m_pCurNotes[p] = NULL;
|
m_pCurNotes[p] = NULL;
|
||||||
m_pCurCourse = NULL;
|
m_pCurCourse = NULL;
|
||||||
|
|
||||||
|
SAFE_DELETE( m_pPosition );
|
||||||
|
m_pPosition = new NoteFieldPositioning("Positioning.ini");
|
||||||
|
|
||||||
ResetMusicStatistics();
|
ResetMusicStatistics();
|
||||||
|
|
||||||
m_CurStageStats = StageStats();
|
m_CurStageStats = StageStats();
|
||||||
@@ -112,9 +115,6 @@ void GameState::Reset()
|
|||||||
m_fSuperMeter[p] = 0;
|
m_fSuperMeter[p] = 0;
|
||||||
m_fSuperMeterGrowthScale[p] = 1;
|
m_fSuperMeterGrowthScale[p] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
SAFE_DELETE( m_pPosition );
|
|
||||||
m_pPosition = new NoteFieldPositioning("Positioning.ini");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameState::Update( float fDelta )
|
void GameState::Update( float fDelta )
|
||||||
|
|||||||
@@ -148,6 +148,8 @@ CString PlayerOptions::GetString()
|
|||||||
* you don't want this. */
|
* you don't want this. */
|
||||||
void PlayerOptions::FromString( CString sOptions )
|
void PlayerOptions::FromString( CString sOptions )
|
||||||
{
|
{
|
||||||
|
ASSERT( GAMESTATE->m_pPosition );
|
||||||
|
ASSERT( NOTESKIN );
|
||||||
// Init();
|
// Init();
|
||||||
sOptions.MakeLower();
|
sOptions.MakeLower();
|
||||||
CStringArray asBits;
|
CStringArray asBits;
|
||||||
|
|||||||
Reference in New Issue
Block a user