sparse_set: check against null rather than tombstone (prepare support for enable/disable)

This commit is contained in:
Michele Caini
2022-05-13 11:10:08 +02:00
parent 215b7a19c9
commit a93c1478c0

View File

@@ -205,7 +205,7 @@ class basic_sparse_set {
}
auto &elem = sparse[page][fast_mod(pos, entity_traits::page_size)];
ENTT_ASSERT(elem == tombstone, "Slot not available");
ENTT_ASSERT(elem == null, "Slot not available");
return elem;
}