summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-05-21 09:31:05 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-05-21 09:31:05 -0400
commit85cac31d06f5ef15b36aa6bc4edd31f85221a7b7 (patch)
treee0a5658b021819664aa3b515462eebc6f8a02a86 /editor
parent40d69e7e40a18865a31af2f55efcde369d36dbbb (diff)
pke: ecs DynArray-s to pk_arr_t
Diffstat (limited to 'editor')
-rw-r--r--editor/editor.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}