mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -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> {
|
struct TextNodeFix : Modify<TextNodeFix, CCTextInputNode> {
|
||||||
bool onTextFieldInsertText(cocos2d::CCTextFieldTTF* field, char const* text, int count) {
|
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);
|
auto ret = CCTextInputNode::onTextFieldInsertText(field, text, count);
|
||||||
this->m_maxLabelLength -= change;
|
m_maxLabelLength -= change;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue