Merge pull request #44818 from ThakeeNathees/const-crash-fix

GDScript crash at incomplete const bug fix
This commit is contained in:
Rémi Verschelde 2021-01-11 13:51:18 +01:00 committed by GitHub
commit bcfb698fb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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