Skip to content

Commit

Permalink
fixed incorrect initial value of label type.
Browse files Browse the repository at this point in the history
  • Loading branch information
WenhaiLin committed Mar 12, 2014
1 parent 73cbb31 commit 09ea654
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cocos/2d/CCLabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 09ea654

Please sign in to comment.