mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 09:55:34 -05:00
remove this->
This commit is contained in:
parent
0367360644
commit
d194cbe3b7
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue