diff options
author | Stephen Nichols <snichols@certainaffinity.com> | 2020-08-05 14:41:46 -0500 |
---|---|---|
committer | Stephen Nichols <snichols@certainaffinity.com> | 2020-08-05 14:41:46 -0500 |
commit | 8a13be50abe929b1905b5e5ef72b199b60de13c3 (patch) | |
tree | 18646e3319652337cbb2840a990553a2b912fc40 /modules/gdscript/gdscript_parser.h | |
parent | 6831da630f5609e1b659d65425d9da07e25df616 (diff) | |
download | redot-engine-8a13be50abe929b1905b5e5ef72b199b60de13c3.tar.gz |
Fixing null callee crash.
Diffstat (limited to 'modules/gdscript/gdscript_parser.h')
-rw-r--r-- | modules/gdscript/gdscript_parser.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h index a741ae0cc7..346895324a 100644 --- a/modules/gdscript/gdscript_parser.h +++ b/modules/gdscript/gdscript_parser.h @@ -383,6 +383,14 @@ public: CallNode() { type = CALL; } + + Type get_callee_type() const { + if (callee == nullptr) { + return Type::NONE; + } else { + return callee->type; + } + } }; struct CastNode : public ExpressionNode { |