Reverting recent initialization list attempt.
The old code was behaving better...by that I mean not crashing on me. Steve is right: time to use different tools to improve our code.
This commit is contained in:
+20
-8
@@ -95,14 +95,26 @@ static Preference<float> g_fNetStartOffset( "NetworkStartOffset", -3.0 );
|
|||||||
static Preference<bool> g_bEasterEggs( "EasterEggs", true );
|
static Preference<bool> g_bEasterEggs( "EasterEggs", true );
|
||||||
|
|
||||||
|
|
||||||
PlayerInfo::PlayerInfo(): m_pn(PLAYER_INVALID), m_mp(MultiPlayer_Invalid),
|
PlayerInfo::PlayerInfo()
|
||||||
m_bIsDummy(false), m_iDummyIndex(0), m_iAddToDifficulty(0),
|
{
|
||||||
m_bPlayerEnabled(false), m_pLifeMeter(NULL),
|
m_pn = PLAYER_INVALID;
|
||||||
m_ptextCourseSongNumber(NULL), m_ptextStepsDescription(NULL),
|
m_mp = MultiPlayer_Invalid;
|
||||||
m_pPrimaryScoreDisplay(NULL), m_pSecondaryScoreDisplay(NULL),
|
m_bIsDummy = false;
|
||||||
m_pPrimaryScoreKeeper(NULL), m_pSecondaryScoreKeeper(NULL),
|
m_iDummyIndex = 0;
|
||||||
m_pActiveAttackList(NULL), m_pPlayer(NULL), m_pInventory(NULL),
|
m_iAddToDifficulty = 0;
|
||||||
m_pStepsDisplay(NULL) {}
|
m_pLifeMeter = NULL;
|
||||||
|
m_ptextCourseSongNumber = NULL;
|
||||||
|
m_ptextStepsDescription = NULL;
|
||||||
|
m_pPrimaryScoreDisplay = NULL;
|
||||||
|
m_pSecondaryScoreDisplay = NULL;
|
||||||
|
m_pPrimaryScoreKeeper = NULL;
|
||||||
|
m_pSecondaryScoreKeeper = NULL;
|
||||||
|
m_ptextPlayerOptions = NULL;
|
||||||
|
m_pActiveAttackList = NULL;
|
||||||
|
m_pPlayer = NULL;
|
||||||
|
m_pInventory = NULL;
|
||||||
|
m_pStepsDisplay = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
void PlayerInfo::Load( PlayerNumber pn, MultiPlayer mp, bool bShowNoteField, int iAddToDifficulty )
|
void PlayerInfo::Load( PlayerNumber pn, MultiPlayer mp, bool bShowNoteField, int iAddToDifficulty )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user