sparse_set: minor changes

This commit is contained in:
Michele Caini
2024-04-26 16:45:49 +02:00
parent d990d4e928
commit 80c05856c2

View File

@@ -715,7 +715,7 @@ public:
* @return The entity at specified location.
*/
[[nodiscard]] entity_type operator[](const size_type pos) const noexcept {
ENTT_ASSERT(pos < packed.size(), "Position is out of bounds");
ENTT_ASSERT(pos < packed.size(), "Index out of bounds");
return packed[pos];
}