Simplify code (getAttributeAsBool didn't have default-paramters in the past).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5633 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2018-07-24 20:13:16 +00:00
parent 09767f2541
commit 0c57deec15
1 changed files with 1 additions and 2 deletions

View File

@ -141,8 +141,7 @@ void CGUITab::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWrite
setNumber(in->getAttributeAsInt("TabNumber"));
setDrawBackground(in->getAttributeAsBool("DrawBackground"));
setBackgroundColor(in->getAttributeAsColor("BackColor"));
if ( in->existsAttribute("OverrideTextColorEnabled") )
OverrideTextColorEnabled = in->getAttributeAsBool("OverrideTextColorEnabled");
OverrideTextColorEnabled = in->getAttributeAsBool("OverrideTextColorEnabled", OverrideTextColorEnabled);
setTextColor(in->getAttributeAsColor("TextColor"));
if (Parent && Parent->getType() == EGUIET_TAB_CONTROL)