diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-14 20:16:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 20:16:44 +0100 |
commit | 2d23ea1d42a35ea04e6a8eacaed3ddf17bc3416a (patch) | |
tree | 3afc797811915b3b511a7fcffa9e0484bf0a8d59 | |
parent | 705ad947e9879028cdb9d66fcfa49bccffd90e4c (diff) | |
parent | 2842c6a88c698385ead33571af4d2189fda429b4 (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.cpp | 2 |
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++; } |