From d980278d81eff59e98a83379953b60fc8e93fce8 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Sun, 29 Nov 2020 18:48:35 +0300 Subject: Fixed crash in canvas_item_add_polyline if color arr has incorrect size --- servers/rendering/rendering_server_canvas.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/servers/rendering/rendering_server_canvas.cpp b/servers/rendering/rendering_server_canvas.cpp index d518d709c5..0e61d53866 100644 --- a/servers/rendering/rendering_server_canvas.cpp +++ b/servers/rendering/rendering_server_canvas.cpp @@ -545,6 +545,8 @@ void RenderingServerCanvas::canvas_item_add_polyline(RID p_item, const Vector indices; int pc = p_points.size(); int pc2 = pc * 2; @@ -565,6 +567,8 @@ void RenderingServerCanvas::canvas_item_add_polyline(RID p_item, const Vector