mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 20:12:07 +08:00
ui/update_line_data: fix assert when max_idx = TRAJECTORY_SIZE-1 (#21543)
old-commit-hash: f554dc0ae624527234931946305a7d010e1230b0
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ static void update_line_data(const UIState *s, const cereal::ModelDataV2::XYZTDa
|
||||
v += calib_frame_to_full_frame(s, line_x[i], line_y[i] + y_off, line_z[i] + z_off, v);
|
||||
}
|
||||
pvd->cnt = v - pvd->v;
|
||||
assert(pvd->cnt < std::size(pvd->v));
|
||||
assert(pvd->cnt <= std::size(pvd->v));
|
||||
}
|
||||
|
||||
static void update_model(UIState *s, const cereal::ModelDataV2::Reader &model) {
|
||||
|
||||
Reference in New Issue
Block a user