Skip to content

Commit

Permalink
fix getchildoftype
Browse files Browse the repository at this point in the history
  • Loading branch information
cdc-sys authored Nov 16, 2024
1 parent c66b78f commit a91ca74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class $modify(MyLevelCell, LevelCell) {

void loadCustomLevelCell() {
LevelCell::loadCustomLevelCell();
if(CCLayerColor* bg = getChildOfType<CCLayerColor>(this, 0)){
if(CCLayerColor* bg = this->getChildByType<CCLayerColor>(0)){
m_fields->m_background = bg;
bg->setZOrder(-2);
}
Expand Down

0 comments on commit a91ca74

Please sign in to comment.