Skip to content

Commit

Permalink
Fix an oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Nov 19, 2024
1 parent a4d5245 commit d152156
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ui/nodes/MCButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ MCButton* MCButton::create(gd::string text, float width, CCObject* target, SEL_M
delete ret;
ret = nullptr;
}
return nullptr;
return ret;
}

void MCButton::setInvisible(){
Expand Down
2 changes: 1 addition & 1 deletion src/ui/nodes/MCButtonChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ MCButtonChild* MCButtonChild::create(gd::string text, float width, CCObject* tar
delete ret;
ret = nullptr;
}
return nullptr;
return ret;
}


Expand Down
2 changes: 1 addition & 1 deletion src/ui/nodes/MCLabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ MCLabel* MCLabel::create(std::wstring text, std::string font){
delete ret;
ret = nullptr;
}
return nullptr;
return ret;
}


Expand Down
2 changes: 1 addition & 1 deletion src/ui/nodes/MCScrollBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MCScrollBar* MCScrollBar::create(ScrollLayer* node, float height){
delete ret;
ret = nullptr;
}
return nullptr;
return ret;
}

bool MCScrollBar::init(ScrollLayer* node, float height){
Expand Down

0 comments on commit d152156

Please sign in to comment.