summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-14 20:16:44 +0100
committerGitHub <noreply@github.com>2020-02-14 20:16:44 +0100
commit2d23ea1d42a35ea04e6a8eacaed3ddf17bc3416a (patch)
tree3afc797811915b3b511a7fcffa9e0484bf0a8d59
parent705ad947e9879028cdb9d66fcfa49bccffd90e4c (diff)
parent2842c6a88c698385ead33571af4d2189fda429b4 (diff)
Merge pull request #36219 from dragmz/dragmz/oob_write
Fix OOB write when calling MultiMesh::set_instance_transform
-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 4a3960be1c..5203873b7b 100644
--- a/servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp
+++ b/servers/visual/rasterizer_rd/rasterizer_storage_rd.cpp
@@ -2471,7 +2471,7 @@ void RasterizerStorageRD::_multimesh_mark_dirty(MultiMesh *multimesh, int p_inde
ERR_FAIL_UNSIGNED_INDEX(region_index, data_cache_dirty_region_count); //bug
#endif
if (!multimesh->data_cache_dirty_regions[region_index]) {
- multimesh->data_cache_dirty_regions[p_index] = true;
+ multimesh->data_cache_dirty_regions[region_index] = true;
multimesh->data_cache_used_dirty_regions++;
}