You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fixes crash after using enums in export variables
This commit is contained in:
@@ -4630,6 +4630,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
||||
if (subexpr->type != Node::TYPE_CONSTANT) {
|
||||
current_export = PropertyInfo();
|
||||
_set_error("Expected a constant expression.");
|
||||
return;
|
||||
}
|
||||
|
||||
Variant constant = static_cast<ConstantNode *>(subexpr)->value;
|
||||
|
||||
Reference in New Issue
Block a user