From c9ebc60faa9c14b845f7aabc79132f1891fdedc4 Mon Sep 17 00:00:00 2001 From: jerrrrycho Date: Mon, 30 Nov 2026 22:38:05 +0100 Subject: [PATCH] perf(physics): the array of the vehicle facts kept to its file --- vehicle/dynamic/vehicletable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle/dynamic/vehicletable.cpp b/vehicle/dynamic/vehicletable.cpp index 9c5a54c0f..148c939bc 100644 --- a/vehicle/dynamic/vehicletable.cpp +++ b/vehicle/dynamic/vehicletable.cpp @@ -129,7 +129,7 @@ struct vehicle_facts { bool active { false }; // its physics on, or the user in it bool loading { false }; // exchanging its load }; -std::vector facts; +static std::vector facts; // by the place of the vehicle in the table, refilled at each update() // whether any vehicle of the train is within the distance of any vehicle of the other one bool