From d242d794430fbb9cc8d533bbc6a6d3e0ab6b61e2 Mon Sep 17 00:00:00 2001 From: Dmitry Bushtets Date: Mon, 22 Sep 2014 19:00:21 +0300 Subject: [PATCH] * added default value for _batchNode in CCSprite --- cocos/2d/CCSprite.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos/2d/CCSprite.cpp b/cocos/2d/CCSprite.cpp index 9b2bd7bbf1..3deb8978ed 100644 --- a/cocos/2d/CCSprite.cpp +++ b/cocos/2d/CCSprite.cpp @@ -262,6 +262,7 @@ Sprite::Sprite(void) : _shouldBeHidden(false) , _texture(nullptr) , _insideBounds(true) +, _batchNode(nullptr) { #if CC_SPRITE_DEBUG_DRAW _debugDrawNode = DrawNode::create();