Skip to content

Commit 2420c94

Browse files
Merge pull request cocos2d#14617 from chengstory/#24345
Fix #24345
2 parents aa66e3a + 2a806a8 commit 2420c94

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cocos/2d/CCTMXTiledMap.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,7 @@ void TMXTiledMap::buildWithMapInfo(TMXMapInfo* mapInfo)
189189
idx++;
190190
continue;
191191
}
192-
addChild(child, 0, idx);
193-
child->setOrderOfArrival(idx);
194-
child->setTag(TMXLayerTag);
192+
addChild(child, idx, idx);
195193
// update content size with the max size
196194
const Size& childSize = child->getContentSize();
197195
Size currentSize = this->getContentSize();

0 commit comments

Comments
 (0)