Skip to content

Commit

Permalink
remove this->
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Oct 2, 2023
1 parent 0367360 commit d194cbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions loader/src/hooks/TextInputNodeFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ using namespace geode::prelude;

struct TextNodeFix : Modify<TextNodeFix, CCTextInputNode> {
bool onTextFieldInsertText(cocos2d::CCTextFieldTTF* field, char const* text, int count) {
auto change = count >= this->m_maxLabelLength ? 1 : 0;
auto change = count >= m_maxLabelLength ? 1 : 0;

this->m_maxLabelLength += change;
m_maxLabelLength += change;
auto ret = CCTextInputNode::onTextFieldInsertText(field, text, count);
this->m_maxLabelLength -= change;
m_maxLabelLength -= change;
return ret;
}
};
Expand Down

0 comments on commit d194cbe

Please sign in to comment.