sparse_set: removed redundant check

This commit is contained in:
Michele Caini
2021-12-30 14:38:51 +01:00
parent 19ab584d32
commit 0ec57fbb8d

View File

@@ -656,7 +656,6 @@ public:
* @return An opaque pointer to the element assigned to the entity, if any.
*/
const void *get(const entity_type entt) const ENTT_NOEXCEPT {
ENTT_ASSERT(contains(entt), "Set does not contain entity");
return get_at(index(entt));
}