always brace nested ifs, or you end up with obscure bugs like this one
This commit is contained in:
1 parent
a94b35af95
commit
2cb3d5f339
1 file changed
+3
-1
@@ -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 )
|
||||
|
||||
Reference in new issue
Block a user