From 6f165bb592c237df52152635e11c08a3abaae28d Mon Sep 17 00:00:00 2001 From: Dhilan007 Date: Wed, 12 Mar 2014 11:06:51 +0800 Subject: [PATCH] fixed incorrect initial value of label type. --- cocos/2d/CCLabel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cocos/2d/CCLabel.cpp b/cocos/2d/CCLabel.cpp index adacc0eeae..fcb8aa5bf0 100644 --- a/cocos/2d/CCLabel.cpp +++ b/cocos/2d/CCLabel.cpp @@ -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);