diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-11-16 18:52:15 +0100 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-11-17 10:02:18 +0100 |
commit | 68f638cf02cc595872c1a35b78cb1ce0039b1eef (patch) | |
tree | 311896361f77ee440b3bfd4c5b2f19f344f88333 /editor/script_create_dialog.cpp | |
parent | 5efd124ca10bf46df62fa2441d80589777e54a5a (diff) | |
download | redot-engine-68f638cf02cc595872c1a35b78cb1ce0039b1eef.tar.gz |
Use `(r)find_char` instead of `(r)find` for single characters
Diffstat (limited to 'editor/script_create_dialog.cpp')
-rw-r--r-- | editor/script_create_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/script_create_dialog.cpp b/editor/script_create_dialog.cpp index d38ff7af76..8615836ddd 100644 --- a/editor/script_create_dialog.cpp +++ b/editor/script_create_dialog.cpp @@ -144,7 +144,7 @@ void ScriptCreateDialog::_notification(int p_what) { void ScriptCreateDialog::_path_hbox_sorted() { if (is_visible()) { - int filename_start_pos = file_path->get_text().rfind("/") + 1; + int filename_start_pos = file_path->get_text().rfind_char('/') + 1; int filename_end_pos = file_path->get_text().get_basename().length(); if (!is_built_in) { |