diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index dd7e255d5..b0d5798c1 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -2152,7 +2152,7 @@ const Variant *GDScriptParser::_try_to_find_constant_value_for_expression(const return &(static_cast(p_expr)->value); } else if (p_expr->type == Node::TYPE_IDENTIFIER) { const StringName &name = static_cast(p_expr)->name; - const Map::Element *element = + const RBMap::Element *element = current_class->constant_expressions.find(name); if (element) { Node *cn_exp = element->value().expression; @@ -2175,7 +2175,7 @@ const Variant *GDScriptParser::_try_to_find_constant_value_for_expression(const const StringName &enum_name = static_cast(op_args[0])->name; const StringName &const_name = static_cast(op_args[1])->name; - Map::Element *element = + RBMap::Element *element = current_class->constant_expressions.find(enum_name); if (element) { Node *cn_exp = element->value().expression;