diff --git a/include/ruckig/block.hpp b/include/ruckig/block.hpp index 8da771fb..866e848b 100644 --- a/include/ruckig/block.hpp +++ b/include/ruckig/block.hpp @@ -134,8 +134,12 @@ class Block { } const Profile& get_profile(double t) const { - if (b && t >= b->right) return b->profile; - if (a && t >= a->right) return a->profile; + if (b && t >= b->right) { + return b->profile; + } + if (a && t >= a->right) { + return a->profile; + } return p_min; }