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
+1 -1
View File
@@ -78,7 +78,7 @@ void ScreenPrompt::BeginScreen()
ScreenWithMenuElements::BeginScreen();
m_Answer = g_defaultAnswer;
CLAMP( (int&)m_Answer, 0, g_PromptType );
ENUM_CLAMP( m_Answer, PromptAnswer(0), PromptAnswer(g_PromptType) );
m_textQuestion.SetText( g_sText );
SET_XY_AND_ON_COMMAND( m_textQuestion );