remove this->

This commit is contained in:
altalk23 2023-10-02 19:05:27 +03:00
parent 0367360644
commit d194cbe3b7

View file

@ -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;
}
};