From 49f311cfa15916e0c22c36ffbc080974e752f3f9 Mon Sep 17 00:00:00 2001 From: Chukobyte Date: Tue, 29 Oct 2024 22:38:18 -0400 Subject: [PATCH] Update. --- seika/ecs/component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); }