From b23552922f012bc90e7ebd2dde26b46aacbbdddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 5 Jan 2022 15:34:47 +0100 Subject: NavigationServer: Restore constness for thread safe `get_singleton` This was removed by mistake in #47024, NavigationServer uses internal mutability for thread safety, and removing `const` breaks the contract. --- servers/navigation_server_3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servers/navigation_server_3d.cpp') diff --git a/servers/navigation_server_3d.cpp b/servers/navigation_server_3d.cpp index 03c75369a6..d78e58bea0 100644 --- a/servers/navigation_server_3d.cpp +++ b/servers/navigation_server_3d.cpp @@ -84,7 +84,7 @@ void NavigationServer3D::_bind_methods() { ADD_SIGNAL(MethodInfo("map_changed", PropertyInfo(Variant::RID, "map"))); } -NavigationServer3D *NavigationServer3D::get_singleton() { +const NavigationServer3D *NavigationServer3D::get_singleton() { return singleton; } -- cgit v1.2.3