diff options
author | Jean Dao <jean@pfudke.fr> | 2019-04-07 06:19:52 +0200 |
---|---|---|
committer | Jean Dao <jean@pfudke.fr> | 2019-04-09 22:06:33 +0200 |
commit | 7240701ec9423780555476e458198c4901737b53 (patch) | |
tree | 3652083e7bc88dea8788d3bceccfaad9b8fb44a5 | |
parent | 40acc3ecdc4ca63040fec3ea30eead21523bade6 (diff) |
Fix: use function in SceneTree::call_group
When calling call_group from C++, the function name is not passed on to
call_group_flags, resulting in first argument being mistakenly used
instead of function.
-rw-r--r-- | scene/main/scene_tree.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 689f18a09d..7bdfecccc2 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -369,8 +369,7 @@ void SceneTree::set_group_flags(uint32_t p_call_flags, const StringName &p_group } void SceneTree::call_group(const StringName &p_group, const StringName &p_function, VARIANT_ARG_DECLARE) { - - call_group_flags(0, p_group, VARIANT_ARG_PASS); + call_group_flags(0, p_group, p_function, VARIANT_ARG_PASS); } void SceneTree::notify_group(const StringName &p_group, int p_notification) { |