Skip to content

Commit

Permalink
Update CCMenu.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Jul 1, 2024
1 parent 571d591 commit 5a78244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/CCMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class $modify(EventCCMenu, CCMenu){

void check(float dt){

if(this && !nodeIsVisible(this)) return;
if(!nodeIsVisible(this)) return;

CCScene* currentScene = CCDirector::get()->getRunningScene();
int layerCount = currentScene->getChildrenCount();
Expand Down

0 comments on commit 5a78244

Please sign in to comment.