Skip to content

Commit 086d1b1

Browse files
committed
Merge pull request #604 from kalo-/patch-1
updated setZOrder: in CCNode.m Former-commit-id: 830223d
2 parents e74a277 + c32543b commit 086d1b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos2d/CCNode.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,10 @@ -(void) setScale:(float) s
600600

601601
- (void) setZOrder:(NSInteger)zOrder
602602
{
603-
[self _setZOrder:zOrder];
604-
605603
if (_parent)
606604
[_parent reorderChild:self z:zOrder];
605+
else
606+
[self _setZOrder:zOrder]; // issue #598
607607
}
608608

609609
#pragma mark CCNode Composition

0 commit comments

Comments
 (0)