probably safer: ConvertValue

This commit is contained in:
Glenn Maynard
2006-10-12 02:03:47 +00:00
parent ccfa2f16dd
commit 6c0264620e
4 changed files with 38 additions and 4 deletions
+1 -1
View File
@@ -1161,7 +1161,7 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
pNode->GetChildValue( "TotalGameplaySeconds", m_iTotalGameplaySeconds );
pNode->GetChildValue( "CurrentCombo", m_iCurrentCombo );
pNode->GetChildValue( "TotalCaloriesBurned", m_fTotalCaloriesBurned );
pNode->GetChildValue( "GoalType", UnionCast(m_GoalType) );
pNode->GetChildValue( "GoalType", *ConvertValue<int>(&m_GoalType) );
pNode->GetChildValue( "GoalCalories", m_iGoalCalories );
pNode->GetChildValue( "GoalSeconds", m_iGoalSeconds );
pNode->GetChildValue( "LastPlayedMachineGuid", m_sLastPlayedMachineGuid );