mirror of
https://github.com/open-goal/jak-project.git
synced 2025-02-07 14:16:37 +00:00
Added bound check for blend vertex count (#2830)
Co-authored-by: animalstyletaco <animalstyletaco95@gmail.com>
This commit is contained in:
parent
d80b1b8119
commit
54b2c5dcbd
@ -1083,7 +1083,10 @@ ConvertedMercEffect convert_merc_effect(const MercEffect& input_effect,
|
||||
|
||||
size_t original_size = result.blerc_vertices_i.size();
|
||||
result.blerc_vertices_i.resize(original_size + bc.blend_vtx_count);
|
||||
auto* out_vertices = &result.blerc_vertices_i[original_size];
|
||||
BlercVtxInt* out_vertices = nullptr;
|
||||
if (bc.blend_vtx_count) {
|
||||
out_vertices = &result.blerc_vertices_i[original_size];
|
||||
}
|
||||
|
||||
// the base position of this vertex.
|
||||
for (int vi = 0; vi < bc.blend_vtx_count; vi++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user