From a0715b30f94430078422ff05d81b9cfa85ddb4ce Mon Sep 17 00:00:00 2001 From: Josh Jones Date: Wed, 21 Dec 2022 14:21:43 -0800 Subject: Rework const on NavigationServer methods `const` is used on all methods, even when they cause modification of the server. This reworks the methods of the server to only use `const` on method that don't change the state of the server. --- main/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/main.cpp') diff --git a/main/main.cpp b/main/main.cpp index 4cab469672..d21574b0e3 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2607,7 +2607,7 @@ bool Main::start() { if (debug_navigation) { sml->set_debug_navigation_hint(true); NavigationServer3D::get_singleton()->set_active(true); - NavigationServer3D::get_singleton_mut()->set_debug_enabled(true); + NavigationServer3D::get_singleton()->set_debug_enabled(true); } #endif @@ -3032,7 +3032,7 @@ bool Main::iteration() { break; } - NavigationServer3D::get_singleton_mut()->process(physics_step * time_scale); + NavigationServer3D::get_singleton()->process(physics_step * time_scale); message_queue->flush(); -- cgit v1.2.3