sparse_set: extra (temporary) check

This commit is contained in:
Michele Caini
2023-09-05 15:05:15 +02:00
parent b6bb7c1a84
commit 9c797ead28

View File

@@ -237,6 +237,7 @@ protected:
* @param len The length to use.
*/
void swap_only_length_temporary_function(const std::size_t len) {
ENTT_ASSERT(mode == deletion_policy::swap_only, "Deletion policy mismatched");
head = static_cast<underlying_type>(len);
}