summaryrefslogtreecommitdiffstats
path: root/servers/text_server.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 /servers/text_server.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 'servers/text_server.cpp')
-rw-r--r--servers/text_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/text_server.cpp b/servers/text_server.cpp
index fda331d482..d2cf4674ae 100644
--- a/servers/text_server.cpp
+++ b/servers/text_server.cpp
@@ -1988,7 +1988,7 @@ TypedArray<Vector3i> TextServer::parse_structured_text(StructuredTextParser p_pa
}
} break;
case STRUCTURED_TEXT_LIST: {
- if (p_args.size() == 1 && p_args[0].get_type() == Variant::STRING) {
+ if (p_args.size() == 1 && p_args[0].is_string()) {
Vector<String> tags = p_text.split(String(p_args[0]));
int prev = 0;
for (int i = 0; i < tags.size(); i++) {