From d4414a0353ed588495b45f6c12aee06454bb25ce Mon Sep 17 00:00:00 2001 From: Nimrod Gileadi Date: Thu, 20 Apr 2023 08:54:45 -0700 Subject: [PATCH] Initialize real_time_index to zero. In the passive viewer, this value wasn't initialized. PiperOrigin-RevId: 525760119 Change-Id: I6635270a30556600a0c51ba1d2767da226ba0440 --- simulate/simulate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulate/simulate.h b/simulate/simulate.h index 0ba1027b..851002a5 100644 --- a/simulate/simulate.h +++ b/simulate/simulate.h @@ -179,7 +179,7 @@ class Simulate { char previous_filename[kMaxFilenameLength] = ""; // time synchronization - int real_time_index; + int real_time_index = 0; bool speed_changed = true; float measured_slowdown = 1.0; // logarithmically spaced realtime slow-down coefficients (percent)