diff --git a/src/egui_pages/ordnance.rs b/src/egui_pages/ordnance.rs index f585832..0773327 100644 --- a/src/egui_pages/ordnance.rs +++ b/src/egui_pages/ordnance.rs @@ -26,9 +26,16 @@ pub fn ordnance(ui: &mut Ui, data: &Res, overview: &Res amount_cols { + amount_cols = group.len(); + } + } + + let mut cols = Vec::new(); + for _ in 0..amount_cols { cols.push(("", Column::remainder())); }