msgbox: deobfuscate assignment of default result value

This commit is contained in:
Stefan Seyfried
2017-03-07 19:46:30 +01:00
parent 6f1cfd42bb
commit 17f5a63d63

View File

@@ -101,10 +101,8 @@ void CMsgBox::init(const int& Height, const int& ShowButtons, const msg_result_t
shadow = CC_SHADOW_ON;
//set result
if (Default_result != mbrNone)
result = default_result = Default_result;
else
result = mbrNone;
result = default_result = Default_result;
//add and initialize footer buttons with required buttons and basic properties
if (ShowButtons > -1)
mb_show_button = ShowButtons;