From f0e3999bbc20cd72fe1f50539e3b523325b0db16 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Tue, 26 Sep 2023 19:46:24 -0400 Subject: off by one for ECS counts --- src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index db81e47..9298b26 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -280,7 +280,7 @@ void RecordImGuiEntityList() { ImGui::TableHeadersRow(); uint64_t bucketCount = ECS_GetEntities_BucketCount(); - for (long bucket = 0; bucket <= bucketCount; ++bucket) { + for (long bucket = 0; bucket < bucketCount; ++bucket) { uint64_t itemCount = 0; auto *entities = ECS_GetEntities(bucket, itemCount); for (long row = 0; row < itemCount; row++) { -- cgit v1.2.3