Use (r)find_char instead of (r)find for single characters
This commit is contained in:
@ -1315,7 +1315,7 @@ bool ArrayMesh::_set(const StringName &p_name, const Variant &p_value) {
|
||||
String sname = p_name;
|
||||
|
||||
if (sname.begins_with("surface_")) {
|
||||
int sl = sname.find("/");
|
||||
int sl = sname.find_char('/');
|
||||
if (sl == -1) {
|
||||
return false;
|
||||
}
|
||||
@ -1708,7 +1708,7 @@ bool ArrayMesh::_get(const StringName &p_name, Variant &r_ret) const {
|
||||
|
||||
String sname = p_name;
|
||||
if (sname.begins_with("surface_")) {
|
||||
int sl = sname.find("/");
|
||||
int sl = sname.find_char('/');
|
||||
if (sl == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user