diff --git a/main/main.cpp b/main/main.cpp index da03dbe713f..040ddfc712a 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2530,9 +2530,9 @@ void Main::cleanup(bool p_force) { memdelete(camera_server); } + finalize_navigation_server(); OS::get_singleton()->finalize(); finalize_physics(); - finalize_navigation_server(); if (packed_data) { memdelete(packed_data);