From bee25011bdf9e80414458878549732ae3d95865a Mon Sep 17 00:00:00 2001 From: ad-daniel Date: Thu, 5 Sep 2024 04:10:42 +0000 Subject: [PATCH] Sync submodule --- webots_ros2_driver/webots/src/controller/c/supervisor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webots_ros2_driver/webots/src/controller/c/supervisor.c b/webots_ros2_driver/webots/src/controller/c/supervisor.c index b20574914..e7a6dc47a 100644 --- a/webots_ros2_driver/webots/src/controller/c/supervisor.c +++ b/webots_ros2_driver/webots/src/controller/c/supervisor.c @@ -2831,6 +2831,9 @@ const double *wb_supervisor_virtual_reality_headset_get_orientation() { } const char *wb_supervisor_field_get_name(WbFieldRef field) { + if (!check_field(field, __FUNCTION__, WB_NO_FIELD, false, NULL, false, false)) + return ""; + return field->name; }