From f37f74d7f9334cf743870d489a7fdeb720195615 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 25 Dec 2023 20:48:01 +0100 Subject: [PATCH] Fixed warning. --- modules/network_synchronizer/networked_controller.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/network_synchronizer/networked_controller.cpp b/modules/network_synchronizer/networked_controller.cpp index abe5c16d2..c99109310 100644 --- a/modules/network_synchronizer/networked_controller.cpp +++ b/modules/network_synchronizer/networked_controller.cpp @@ -669,7 +669,11 @@ void ServerController::process(double p_delta) { return; } +#ifdef DEBUG_ENABLED const bool is_new_input = fetch_next_input(p_delta); +#else + fetch_next_input(p_delta); +#endif if (unlikely(current_input_buffer_id == UINT32_MAX)) { // Skip this until the first input arrive.