mirror of https://github.com/axmolengine/axmol.git
fixed BatchNode's _children is empty, draw will crash
This commit is contained in:
parent
d3eab6d282
commit
4f2603f69c
|
@ -163,6 +163,11 @@ void BatchNode::visit()
|
|||
|
||||
void BatchNode::draw()
|
||||
{
|
||||
if (_children == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
CC_NODE_DRAW_SETUP();
|
||||
|
||||
for(auto object : *_children)
|
||||
|
|
Loading…
Reference in New Issue