From 18f30dda63018fa44c936c2ee2377b05e547cb64 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Wed, 30 Dec 2020 23:27:46 +0530 Subject: GDScript crash at incomplete const bug fix --- modules/gdscript/gdscript_parser.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') 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"); -- cgit v1.2.3