mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-07 07:41:50 -05:00
GDScript: Fix crash caused by inconsistent get_member
This commit is contained in:
@@ -2019,7 +2019,7 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod
|
||||
GDScriptParser::ClassNode *outer = base_class->outer;
|
||||
while (outer != nullptr) {
|
||||
if (outer->has_member(name)) {
|
||||
const GDScriptParser::ClassNode::Member &member = base_class->get_member(name);
|
||||
const GDScriptParser::ClassNode::Member &member = outer->get_member(name);
|
||||
if (member.type == GDScriptParser::ClassNode::Member::CONSTANT) {
|
||||
// TODO: Make sure loops won't cause problem. And make special error message for those.
|
||||
// For out-of-order resolution:
|
||||
|
||||
Reference in New Issue
Block a user