diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-04 10:32:20 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-02-04 11:35:01 +0200 |
commit | 244db375087440888ca5b86fd0d114a54f41489a (patch) | |
tree | 1297f0ceeb3a41e918cfcce11bdc441f72c049a3 /scene/main | |
parent | 2a3c4f00c892dbee388cda69239285df3e0a41b5 (diff) |
Cleanup and move char functions to the `char_utils.h` header.
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp index 2665a5695b..149382bc2a 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -1061,7 +1061,7 @@ void Node::_generate_serial_child_name(const Node *p_child, StringName &name) co String nums; for (int i = name_string.length() - 1; i >= 0; i--) { char32_t n = name_string[i]; - if (n >= '0' && n <= '9') { + if (is_digit(n)) { nums = String::chr(name_string[i]) + nums; } else { break; |