Skip to content

Commit

Permalink
Merge pull request godotengine#44818 from ThakeeNathees/const-crash-fix
Browse files Browse the repository at this point in the history
GDScript crash at incomplete const bug fix
  • Loading branch information
akien-mga authored Jan 11, 2021
2 parents aaf6725 + 18f30dd commit bcfb698
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/gdscript/gdscript_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit bcfb698

Please sign in to comment.