summaryrefslogtreecommitdiff
path: root/modules/visual_script
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-03 22:21:24 +0100
committerGitHub <noreply@github.com>2022-02-03 22:21:24 +0100
commitf8f19b313d62b707467c54d245b9c3e0ad53f34f (patch)
tree975f9c64fe51c3809c7c3b2eb0cd46d3563d2bd2 /modules/visual_script
parent025e778020dde6dcee89f5ae1e2a63ccddc24340 (diff)
parentadbe948bda202209b55249198e1837324e703ddb (diff)
Merge pull request #57562 from AnilBK/string-add-contains
String: Add contains().
Diffstat (limited to 'modules/visual_script')
-rw-r--r--modules/visual_script/editor/visual_script_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/visual_script/editor/visual_script_editor.cpp b/modules/visual_script/editor/visual_script_editor.cpp
index b00b5a2ddd..1a7d473bd4 100644
--- a/modules/visual_script/editor/visual_script_editor.cpp
+++ b/modules/visual_script/editor/visual_script_editor.cpp
@@ -2803,7 +2803,7 @@ void VisualScriptEditor::add_callback(const String &p_function, PackedStringArra
String name = p_args[i];
Variant::Type type = Variant::NIL;
- if (name.find(":") != -1) {
+ if (name.contains(":")) {
String tt = name.get_slice(":", 1);
name = name.get_slice(":", 0);
for (int j = 0; j < Variant::VARIANT_MAX; j++) {