Simplify.

This commit is contained in:
Steve Checkoway
2006-10-11 11:12:09 +00:00
parent 35a20193ef
commit 6fd4694b79
5 changed files with 6 additions and 27 deletions
+1 -5
View File
@@ -1161,11 +1161,7 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
pNode->GetChildValue( "TotalGameplaySeconds", m_iTotalGameplaySeconds );
pNode->GetChildValue( "CurrentCombo", m_iCurrentCombo );
pNode->GetChildValue( "TotalCaloriesBurned", m_fTotalCaloriesBurned );
{
int temp;
pNode->GetChildValue( "GoalType", temp );
m_GoalType = GoalType( temp );
}
pNode->GetChildValue( "GoalType", UnionCast(m_GoalType) );
pNode->GetChildValue( "GoalCalories", m_iGoalCalories );
pNode->GetChildValue( "GoalSeconds", m_iGoalSeconds );
pNode->GetChildValue( "LastPlayedMachineGuid", m_sLastPlayedMachineGuid );