diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-01-11 13:51:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 13:51:18 +0100 |
commit | bcfb698fb4490a6428b1b103383030805430f8cc (patch) | |
tree | 25abfda4d96a4747513c5cb1c61cc5ce1904b94a /modules/gdscript | |
parent | aaf6725150f9437c40e7f4fdbec410428d46e9c2 (diff) | |
parent | 18f30dda63018fa44c936c2ee2377b05e547cb64 (diff) |
Merge pull request #44818 from ThakeeNathees/const-crash-fix
GDScript crash at incomplete const bug fix
Diffstat (limited to 'modules/gdscript')
-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 00c809bc63..e1e77b1a5e 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"); |