diff options
author | Thakee Nathees <thakeenathees@gmail.com> | 2020-12-30 23:27:46 +0530 |
---|---|---|
committer | Thakee Nathees <thakeenathees@gmail.com> | 2020-12-30 23:27:46 +0530 |
commit | 18f30dda63018fa44c936c2ee2377b05e547cb64 (patch) | |
tree | ac6c5d16b628c7228a0b72f87b577bbba50159bc /modules | |
parent | 7d972b8c67412571e5ceb1d975aa5161e4e9e27b (diff) |
GDScript crash at incomplete const bug fix
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 2c735049b6..91aedf8840 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -976,6 +976,8 @@ GDScriptParser::ConstantNode *GDScriptParser::parse_constant() { push_error(R"(Expected initializer expression for constant.)"); return nullptr; } + } else { + return nullptr; } end_statement("constant declaration"); |