Use (r)find_char instead of (r)find for single characters

This commit is contained in:
A Thousand Ships 2024-11-16 18:52:15 +01:00
parent 5efd124ca1
commit 68f638cf02
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
70 changed files with 169 additions and 169 deletions

View file

@ -2817,7 +2817,7 @@ Ref<Resource> ResourceFormatLoaderCSharpScript::load(const String &p_path, const
if (p_path.begins_with("csharp://")) {
// This is a virtual path used by generic types, extract the real path.
real_path = "res://" + p_path.trim_prefix("csharp://");
real_path = real_path.substr(0, real_path.rfind(":"));
real_path = real_path.substr(0, real_path.rfind_char(':'));
}
Ref<CSharpScript> scr;