Skip to content

Commit ae2e049

Browse files
authored
fix zoom errors
1 parent a91ca74 commit ae2e049

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Zoom.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void Zoom::doZoom(float y){
2929
CCNode* thumbnailPopup = CCScene::get()->getChildByID("ThumbnailPopup");
3030
if (!thumbnailPopup) return;
3131

32-
CCLayer* popupLayer = getChildOfType<CCLayer>(thumbnailPopup, 0);
32+
CCLayer* popupLayer = thumbnailPopup->getChildByType<CCLayer>(0);
3333
if(!popupLayer) return;
3434

3535
CCNode* thumbnail = thumbnailPopup->getChildByIDRecursive("thumbnail");
@@ -82,7 +82,7 @@ void Zoom::update(float dt){
8282
CCNode* thumbnailPopup = CCScene::get()->getChildByID("ThumbnailPopup");
8383
if (!thumbnailPopup) return;
8484

85-
CCLayer* popupLayer = getChildOfType<CCLayer>(thumbnailPopup, 0);
85+
CCLayer* popupLayer = thumbnailPopup->getChildByType<CCLayer>(0);
8686
if(!popupLayer) return;
8787

8888
CCNode* thumbnail = thumbnailPopup->getChildByIDRecursive("thumbnail");
@@ -145,4 +145,4 @@ class $modify(CCEGLView) {
145145
}
146146
};
147147

148-
#endif
148+
#endif

0 commit comments

Comments
 (0)