diff --git a/seika/ecs/component.c b/seika/ecs/component.c index d25e7ec..ee81484 100644 --- a/seika/ecs/component.c +++ b/seika/ecs/component.c @@ -160,7 +160,7 @@ SkaComponentType ska_ecs_component_manager_get_component_signature(SkaEntity ent void ska_ecs_component_manager_reserve(SkaEntity lastEntity) { // Add to component array if entity exceeds size - usize newIndex = (usize)lastEntity; + const usize newIndex = (usize)lastEntity; while (componentManager.componentArrays->size <= newIndex) { ska_array_list_push_back(componentManager.componentArrays, &(ComponentArray){0}); }