diff options
Diffstat (limited to 'scene/property_utils.cpp')
-rw-r--r-- | scene/property_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/property_utils.cpp b/scene/property_utils.cpp index 54e880e931..6b5193a4c8 100644 --- a/scene/property_utils.cpp +++ b/scene/property_utils.cpp @@ -184,7 +184,7 @@ Variant PropertyUtils::get_property_default_value(const Object *p_object, const // Heuristically check if this is a synthetic property (whatever/0, whatever/1, etc.) // because they are not in the class DB yet must have a default (null). String prop_str = String(p_property); - int p = prop_str.rfind("/"); + int p = prop_str.rfind_char('/'); if (p != -1 && p < prop_str.length() - 1) { bool all_digits = true; for (int i = p + 1; i < prop_str.length(); i++) { |