fixed incorrect initial value of label type.

This commit is contained in:
Dhilan007 2014-03-12 11:06:51 +08:00
parent aefafdbe77
commit 6f165bb592
1 changed files with 4 additions and 3 deletions

View File

@ -269,9 +269,10 @@ Label::Label(FontAtlas *atlas, TextHAlignment alignment, bool useDistanceField,b
, _useA8Shader(useA8Shader)
, _fontScale(1.0f)
, _uniformEffectColor(0)
,_currNumLines(-1)
,_textSprite(nullptr)
,_contentDirty(false)
, _currNumLines(-1)
, _textSprite(nullptr)
, _contentDirty(false)
, _currentLabelType(LabelType::STRING_TEXTURE)
{
_cascadeColorEnabled = true;
_batchNodes.push_back(this);