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.
This commit is contained in:
Rémi Verschelde
2022-01-05 15:34:47 +01:00
parent 2c7fcdd7f9
commit b23552922f
5 changed files with 8 additions and 8 deletions

View File

@@ -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;
}