AddChild test fix

`sortAllChildren` should not be part of the test.
It is tested separatedly on another test
This commit is contained in:
Ricardo Quesada 2013-08-31 06:59:44 -07:00
parent 57f012f331
commit 5abb57e5f2
1 changed files with 3 additions and 3 deletions

View File

@ -543,11 +543,11 @@ void AddSpriteSheet::update(float dt)
{ {
batchNode->addChild( sprites[i], zs[i], kTagBase+i); batchNode->addChild( sprites[i], zs[i], kTagBase+i);
} }
batchNode->sortAllChildren();
CC_PROFILER_STOP(this->profilerName()); CC_PROFILER_STOP(this->profilerName());
batchNode->sortAllChildren();
// remove them // remove them
for( int i=0;i < totalToAdd;i++) for( int i=0;i < totalToAdd;i++)
{ {