diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-01 21:29:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 21:29:33 +0100 |
commit | b5707400ebb3daa346fece54c119a5da70852647 (patch) | |
tree | 05a82f8a1434e4fa380d9e78cd34c3bcb33ecb1e /scene/main/scene_tree.cpp | |
parent | dc4483a3a74a4cac83fc0387ea4d09066a0a0e1c (diff) | |
parent | fc27636999a15f88b1f3b1d7101d84a67968ba06 (diff) |
Merge pull request #57525 from AnilBK/vector-use-clear-has
Diffstat (limited to 'scene/main/scene_tree.cpp')
-rw-r--r-- | scene/main/scene_tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 0c92dcae11..45f04b28b9 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -130,7 +130,7 @@ SceneTree::Group *SceneTree::add_to_group(const StringName &p_group, Node *p_nod E = group_map.insert(p_group, Group()); } - ERR_FAIL_COND_V_MSG(E->get().nodes.find(p_node) != -1, &E->get(), "Already in group: " + p_group + "."); + ERR_FAIL_COND_V_MSG(E->get().nodes.has(p_node), &E->get(), "Already in group: " + p_group + "."); E->get().nodes.push_back(p_node); //E->get().last_tree_version=0; E->get().changed = true; |