GDScript crash at incomplete const bug fix

This commit is contained in:
Thakee Nathees 2020-12-30 23:27:46 +05:30
parent 7d972b8c67
commit 18f30dda63

View File

@ -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");