summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-03 17:38:06 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-03 17:38:06 +0200
commit13a90e938f0e3ae567f7d7256e35c38bf744e59d (patch)
tree120e69941581aa607fcd43349f32666ea9d59d1b /modules/gdscript/gdscript_editor.cpp
parent514c564a8c855d798ec6b5a52860e5bca8d57bc9 (diff)
parent154049ce1792a6e12b990e0a414a6c084c3b91c5 (diff)
downloadredot-engine-13a90e938f0e3ae567f7d7256e35c38bf744e59d.tar.gz
Merge pull request #70096 from rune-scape/stringname-dict
StringName Dictionary keys
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r--modules/gdscript/gdscript_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp
index 636339ef1d..f7eda11c8e 100644
--- a/modules/gdscript/gdscript_editor.cpp
+++ b/modules/gdscript/gdscript_editor.cpp
@@ -1997,7 +1997,7 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context,
}
// Look for valid indexing in other types
- if (!found && (index.value.get_type() == Variant::STRING || index.value.get_type() == Variant::NODE_PATH)) {
+ if (!found && (index.value.is_string() || index.value.get_type() == Variant::NODE_PATH)) {
StringName id = index.value;
found = _guess_identifier_type_from_base(c, base, id, r_type);
} else if (!found && index.type.kind == GDScriptParser::DataType::BUILTIN) {