diff --git a/src/screenComponents/rotatingModelView.cpp b/src/screenComponents/rotatingModelView.cpp index 111f8686b..b0f9d44cb 100644 --- a/src/screenComponents/rotatingModelView.cpp +++ b/src/screenComponents/rotatingModelView.cpp @@ -26,17 +26,11 @@ GuiRotatingModelView::GuiRotatingModelView(GuiContainer* owner, string id, sp::e void GuiRotatingModelView::onDraw(sp::RenderTarget& renderer) { - if (rect.size.x <= 0) { - return; - } - if (rect.size.y <= 0) { - return; - } + if (rect.size.x <= 0) return; + if (rect.size.y <= 0) return; auto mrc = entity.getComponent(); - if (!mrc) { - return; - } + if (!mrc) return; renderer.finish();