diff --git a/src/app/RackWidget.cpp b/src/app/RackWidget.cpp index a78d966d..7d8252de 100644 --- a/src/app/RackWidget.cpp +++ b/src/app/RackWidget.cpp @@ -480,8 +480,8 @@ void RackWidget::setModulePosForce(ModuleWidget *mw, math::Vec pos) { }; // Collect modules to the left and right of `mw` - std::set leftModules; - std::set rightModules; + std::set leftModules(cmp); + std::set rightModules(cmp); for (widget::Widget *w2 : moduleContainer->children) { if (w2 == mw) continue;