From b165e9f9c8a71d7e052520f99733471b19a6702d Mon Sep 17 00:00:00 2001 From: korenkonder Date: Mon, 10 Jun 2024 20:19:16 +0300 Subject: [PATCH] What? --- src/CRE/object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CRE/object.cpp b/src/CRE/object.cpp index 137dcfac..ce96072e 100644 --- a/src/CRE/object.cpp +++ b/src/CRE/object.cpp @@ -441,7 +441,7 @@ bool obj_index_buffer::load(obj* obj) { for (int32_t i = 0; i < mesh_num; i++) { obj_mesh& mesh = obj->mesh_array[i]; size_t num_index = 0; - for (int32_t j = 0; j < mesh.num_submesh; i++) + for (int32_t j = 0; j < mesh.num_submesh; j++) num_index += mesh.submesh_array[j].num_index; buffer_size += num_index * sizeof(uint16_t); }