summaryrefslogtreecommitdiff
path: root/servers/visual/rasterizer_rd
diff options
context:
space:
mode:
authorFabian Mathews <supagu@gmail.com>2019-12-20 20:48:51 +1030
committerFabian Mathews <supagu@gmail.com>2020-02-11 12:07:03 +0100
commitba6d9597cbbfe539e03b37f703090b98f0eab2b8 (patch)
treec9b37e7d18e060d5f1ac933217a02d9b96d75eda /servers/visual/rasterizer_rd
parent2db8f40bd7323dc89e25e2a43dcd95009332dac3 (diff)
Fixed error condition check for multimesh instance colors
Diffstat (limited to 'servers/visual/rasterizer_rd')
-rw-r--r--servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp2
1 files changed, 1 insertions, 1 deletions
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);