From 66f02544bd7504111adbe402d4cad319f258cbf0 Mon Sep 17 00:00:00 2001 From: Chukobyte Date: Tue, 29 Oct 2024 16:08:19 -0400 Subject: [PATCH] Clean. --- 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 6d1a18b..d25e7ec 100644 --- a/seika/ecs/component.c +++ b/seika/ecs/component.c @@ -161,7 +161,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; - while (componentManager.componentArrays->size < newIndex) { + while (componentManager.componentArrays->size <= newIndex) { ska_array_list_push_back(componentManager.componentArrays, &(ComponentArray){0}); } }