summaryrefslogtreecommitdiff
path: root/core/io
diff options
context:
space:
mode:
authorStijn Hinlopen <f.a.hinlopen@gmail.com>2020-07-03 15:26:22 +0200
committerStijn Hinlopen <f.a.hinlopen@gmail.com>2020-07-03 15:26:22 +0200
commit929b98d24b53789b3e3fbbae90aed0fe0e72b409 (patch)
tree89156a4e626da2bef5305bee55d785f5e77aec46 /core/io
parentfd5b6e1db24facfbb6d5e9175b8e512c25fbde1d (diff)
Remove String::find_last (same as rfind)
Diffstat (limited to 'core/io')
-rw-r--r--core/io/resource_loader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp
index f9d2c9067c..534f3e44de 100644
--- a/core/io/resource_loader.cpp
+++ b/core/io/resource_loader.cpp
@@ -865,7 +865,7 @@ String ResourceLoader::_path_remap(const String &p_path, bool *r_translation_rem
bool near_match = false;
for (int i = 0; i < res_remaps.size(); i++) {
- int split = res_remaps[i].find_last(":");
+ int split = res_remaps[i].rfind(":");
if (split == -1) {
continue;
}