diff --git a/src/mvPlotting.h b/src/mvPlotting.h index 19d3e596f..e7fa0559a 100644 --- a/src/mvPlotting.h +++ b/src/mvPlotting.h @@ -197,7 +197,7 @@ struct mvBarGroupSeriesConfig { ImPlotBarsFlags flags = ImPlotBarsFlags_None; float group_width = 0.67f; - int shift; + int shift = 0; // Since our default group size is 1, we need a label for that single item in the group. // The config must be valid at all times. std::vector label_ids { std::string() };