diff --git a/src/game/editor/editor.cpp b/src/game/editor/editor.cpp index e89ac7f97..0af853e4b 100644 --- a/src/game/editor/editor.cpp +++ b/src/game/editor/editor.cpp @@ -5112,13 +5112,8 @@ void CEditor::RenderEnvelopeEditor(CUIRect View) float x0 = pEnvelope->m_vPoints[i].m_Time / 1000.0f / EndTime; float x1 = pEnvelope->m_vPoints[i + 1].m_Time / 1000.0f / EndTime; - CUIRect v; - v.x = ColorBar.x + x0 * ColorBar.w; - v.y = ColorBar.y; - v.w = (x1 - x0) * ColorBar.w; - v.h = ColorBar.h; - IGraphics::CQuadItem QuadItem(v.x, v.y, v.w, v.h); + IGraphics::CQuadItem QuadItem(ColorBar.x + x0 * ColorBar.w, ColorBar.y, (x1 - x0) * ColorBar.w, ColorBar.h); Graphics()->QuadsDrawTL(&QuadItem, 1); } Graphics()->QuadsEnd();