mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Use (r)find_char instead of (r)find for single characters
This commit is contained in:
@@ -1782,7 +1782,7 @@ Error ResourceFormatSaverTextInstance::save(const String &p_path, const Ref<Reso
|
||||
for (KeyValue<Ref<Resource>, String> &E : external_resources) {
|
||||
String cached_id = E.key->get_id_for_path(local_path);
|
||||
if (cached_id.is_empty() || cached_ids_found.has(cached_id)) {
|
||||
int sep_pos = E.value.find("_");
|
||||
int sep_pos = E.value.find_char('_');
|
||||
if (sep_pos != -1) {
|
||||
E.value = E.value.substr(0, sep_pos + 1); // Keep the order found, for improved thread loading performance.
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user