diff --git a/include/helpers.hpp b/include/helpers.hpp index ebde5c3a..e7c490ed 100644 --- a/include/helpers.hpp +++ b/include/helpers.hpp @@ -134,8 +134,8 @@ TParamWidget* createLightParam(math::Vec pos, engine::Module* module, int paramI template TParamWidget* createLightParamCentered(math::Vec pos, engine::Module* module, int paramId, int firstLightId) { - TParamWidget* o = createParamCentered(pos, module, paramId); - o->setFirstLightId(firstLightId); + TParamWidget* o = createLightParam(pos, module, paramId, firstLightId); + o->box.pos = o->box.pos.minus(o->box.size.div(2)); return o; }