From 154049ce1792a6e12b990e0a414a6c084c3b91c5 Mon Sep 17 00:00:00 2001 From: rune-scape Date: Thu, 28 Dec 2023 14:44:23 -0800 Subject: StringName Dictionary keys also added 'is_string()' method to Variant and refactored many String type comparisons to use it instead --- servers/text_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servers/text_server.cpp') diff --git a/servers/text_server.cpp b/servers/text_server.cpp index 860cc5d75d..8a53b919d4 100644 --- a/servers/text_server.cpp +++ b/servers/text_server.cpp @@ -1988,7 +1988,7 @@ TypedArray 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 tags = p_text.split(String(p_args[0])); int prev = 0; for (int i = 0; i < tags.size(); i++) { -- cgit v1.2.3