diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-05-01 08:35:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-01 08:35:10 +0200 |
commit | 4cce6f34170d693be994d9a451b4b5f96a084cfb (patch) | |
tree | 74fa8c76ccd7eb2f289f08bb38a095c4cc74cb59 /core/node_path.cpp | |
parent | 613a8bee415381a8564d34092b479e1f159e8e60 (diff) | |
parent | e6deba8d196a206ff350bc4d9fff783f78395d33 (diff) |
Merge pull request #18321 from Crazy-P/Fixes-logically-dead-code
Fixes logically dead code (Coverity)
Diffstat (limited to 'core/node_path.cpp')
-rw-r--r-- | core/node_path.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/node_path.cpp b/core/node_path.cpp index cd7ad77534..64983fc091 100644 --- a/core/node_path.cpp +++ b/core/node_path.cpp @@ -264,8 +264,9 @@ NodePath NodePath::get_as_property_path() const { Vector<StringName> new_path = data->subpath; String initial_subname = data->path[0]; + for (size_t i = 1; i < data->path.size(); i++) { - initial_subname += i == 0 ? data->path[i].operator String() : "/" + data->path[i]; + initial_subname += "/" + data->path[i]; } new_path.insert(0, initial_subname); |