mirror of https://github.com/axmolengine/axmol.git
Merge pull request #14123 from jgod/patch-2
Check that textureAtlas isn't null before removing quads in SpriteBatchNode
This commit is contained in:
commit
7de8f761d0
|
@ -252,7 +252,7 @@ void SpriteBatchNode::removeAllChildrenWithCleanup(bool doCleanup)
|
|||
Node::removeAllChildrenWithCleanup(doCleanup);
|
||||
|
||||
_descendants.clear();
|
||||
_textureAtlas->removeAllQuads();
|
||||
if (_textureAtlas) {_textureAtlas->removeAllQuads();}
|
||||
}
|
||||
|
||||
//override sortAllChildren
|
||||
|
|
Loading…
Reference in New Issue