Casting an rvalue to nonconst reference is illegal. I'm not positive why these are considered to be rvalues when they are cast.

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