fix swapChildIndices not also swapping z order and order of arrival

This commit is contained in:
HJfod 2023-02-11 12:57:35 +02:00
parent 8890901af5
commit ba0851e4fa

View file

@ -10,6 +10,8 @@ USE_GEODE_NAMESPACE();
void CCNode::swapChildIndices(CCNode* first, CCNode* second) {
m_pChildren->exchangeObject(first, second);
std::swap(first->m_nZOrder, second->m_nZOrder);
std::swap(first->m_uOrderOfArrival, second->m_uOrderOfArrival);
}
CCArray* Layout::getNodesToPosition(CCNode* on) {