Check that textureAtlas isn't null before removing all quads in SpriteBatchNode

See issue #14122.
This commit is contained in:
Justin Godesky 2015-10-12 20:42:08 -04:00
parent 5b35796093
commit e60ac24e5d
1 changed files with 1 additions and 1 deletions

View File

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