mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
Add null check for m_delegate
(#318)
* fix formatting * Add null check for `m_delegate` --------- Co-authored-by: Mazin Eltahawy <mazintahawy@gmail.com> Co-authored-by: mat <26722564+matcool@users.noreply.github.com>
This commit is contained in:
parent
746966c423
commit
2d8e988ce3
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ struct CCTextInputNodeFix : Modify<CCTextInputNodeFix, CCTextInputNode> {
|
|||
|
||||
if (pos.x < 0 || pos.x > size.width || pos.y < 0 || pos.y > size.height)
|
||||
return false;
|
||||
if (!m_delegate->allowTextInput(this))
|
||||
if (m_delegate && !m_delegate->allowTextInput(this))
|
||||
return false;
|
||||
|
||||
this->onClickTrackNode(true);
|
||||
|
|
Loading…
Reference in a new issue