From 85cac31d06f5ef15b36aa6bc4edd31f85221a7b7 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Wed, 21 May 2025 09:31:05 -0400 Subject: pke: ecs DynArray-s to pk_arr_t --- editor/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/editor.cpp b/editor/editor.cpp index 8526bff..8345964 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -216,7 +216,7 @@ void PkeEditor_Tick(double delta) { return; } - if (selectedEntity && EntitiesToBeRemoved.Has(ECS_GetEntity(selectedEntity->entHandle))) { + if (selectedEntity && pk_arr_find_first_index(&EntitiesToBeRemoved, ECS_GetEntity(selectedEntity->entHandle), ecs_pk_arr_find_first_matching_pointer) != uint32_t(-1)) { selectedEntity = nullptr; } -- cgit v1.2.3