From ba6d9597cbbfe539e03b37f703090b98f0eab2b8 Mon Sep 17 00:00:00 2001 From: Fabian Mathews Date: Fri, 20 Dec 2019 20:48:51 +1030 Subject: Fixed error condition check for multimesh instance colors --- servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servers') diff --git a/servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp b/servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp index 58b4205b38..2d4675cfb3 100644 --- a/servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp +++ b/servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp @@ -2616,7 +2616,7 @@ void RasterizerStorageRD::multimesh_instance_set_color(RID p_multimesh, int p_in MultiMesh *multimesh = multimesh_owner.getornull(p_multimesh); ERR_FAIL_COND(!multimesh); ERR_FAIL_INDEX(p_index, multimesh->instances); - ERR_FAIL_INDEX(p_index, !multimesh->uses_colors); + ERR_FAIL_COND(!multimesh->uses_colors); _multimesh_make_local(multimesh); -- cgit v1.2.3