mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 18:41:29 +00:00
Merge pull request #44818 from ThakeeNathees/const-crash-fix
GDScript crash at incomplete const bug fix
This commit is contained in:
commit
bcfb698fb4
1 changed files with 2 additions and 0 deletions
|
|
@ -976,6 +976,8 @@ GDScriptParser::ConstantNode *GDScriptParser::parse_constant() {
|
||||||
push_error(R"(Expected initializer expression for constant.)");
|
push_error(R"(Expected initializer expression for constant.)");
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
end_statement("constant declaration");
|
end_statement("constant declaration");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue