mirror of https://github.com/axmolengine/axmol.git
Check that textureAtlas isn't null before removing all quads in SpriteBatchNode
See issue #14122.
This commit is contained in:
parent
5b35796093
commit
e60ac24e5d
|
@ -240,7 +240,7 @@ void SpriteBatchNode::removeAllChildrenWithCleanup(bool doCleanup)
|
||||||
Node::removeAllChildrenWithCleanup(doCleanup);
|
Node::removeAllChildrenWithCleanup(doCleanup);
|
||||||
|
|
||||||
_descendants.clear();
|
_descendants.clear();
|
||||||
_textureAtlas->removeAllQuads();
|
if (_textureAtlas) {_textureAtlas->removeAllQuads();}
|
||||||
}
|
}
|
||||||
|
|
||||||
//override sortAllChildren
|
//override sortAllChildren
|
||||||
|
|
Loading…
Reference in New Issue