always brace nested ifs, or you end up with obscure bugs like this one

This commit is contained in:
Glenn Maynard
2003-06-24 20:03:28 +00:00
parent a94b35af95
commit 2cb3d5f339
+3 -1
View File
@@ -177,11 +177,13 @@ void ScreenPrompt::MenuStart( PlayerNumber pn )
SOUNDMAN->PlayOnce( THEME->GetPathToS("Common start") );
if( m_bAnswer )
{
if( m_pOnYes )
m_pOnYes();
else
} else {
if( m_pOnNo )
m_pOnNo();
}
}
void ScreenPrompt::MenuBack( PlayerNumber pn )