diff --git a/main/main.cpp b/main/main.cpp index d2f2fda68..f8b806d97 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2450,9 +2450,9 @@ void Main::cleanup(bool p_force) { memdelete(audio_server); } + finalize_navigation_server(); OS::get_singleton()->finalize(); finalize_physics(); - finalize_navigation_server(); if (packed_data) { memdelete(packed_data);