Skip to content

Commit d4414a0

Browse files
nimrod-gileadicopybara-github
authored andcommitted
Initialize real_time_index to zero.
In the passive viewer, this value wasn't initialized. PiperOrigin-RevId: 525760119 Change-Id: I6635270a30556600a0c51ba1d2767da226ba0440
1 parent b28d149 commit d4414a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simulate/simulate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class Simulate {
179179
char previous_filename[kMaxFilenameLength] = "";
180180

181181
// time synchronization
182-
int real_time_index;
182+
int real_time_index = 0;
183183
bool speed_changed = true;
184184
float measured_slowdown = 1.0;
185185
// logarithmically spaced realtime slow-down coefficients (percent)

0 commit comments

Comments
 (0)