Merge pull request #14123 from jgod/patch-2

Check that textureAtlas isn't null before removing quads in SpriteBatchNode
This commit is contained in:
minggo 2016-04-21 14:44:32 +08:00
commit 7de8f761d0
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ void SpriteBatchNode::removeAllChildrenWithCleanup(bool doCleanup)
Node::removeAllChildrenWithCleanup(doCleanup);
_descendants.clear();
_textureAtlas->removeAllQuads();
if (_textureAtlas) {_textureAtlas->removeAllQuads();}
}
//override sortAllChildren