summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-07-11 16:18:10 +0200
committerkobewi <kobewi4e@gmail.com>2023-10-05 11:35:29 +0200
commit09b30be86dd3034b46ae26c1ecde1f9ad941a5c8 (patch)
tree286927a2063b42d350257896e308dfc1ed6fb03a /modules
parentc7ed5d795ef396650e1e2853cf0d76cbdb1cb45e (diff)
downloadredot-engine-09b30be86dd3034b46ae26c1ecde1f9ad941a5c8.tar.gz
Add vararg call() method to C++ Callable
Diffstat (limited to 'modules')
-rw-r--r--modules/navigation/nav_agent.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/navigation/nav_agent.cpp b/modules/navigation/nav_agent.cpp
index 010bd2d7c0..cb219ac6c0 100644
--- a/modules/navigation/nav_agent.cpp
+++ b/modules/navigation/nav_agent.cpp
@@ -145,12 +145,7 @@ void NavAgent::dispatch_avoidance_callback() {
}
// Invoke the callback with the new velocity.
- Variant args[] = { new_velocity };
- const Variant *args_p[] = { &args[0] };
- Variant return_value;
- Callable::CallError call_error;
-
- avoidance_callback.callp(args_p, 1, return_value, call_error);
+ avoidance_callback.call(new_velocity);
}
void NavAgent::set_neighbor_distance(real_t p_neighbor_distance) {