Skip to content

Commit

Permalink
storage: improve asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Sep 14, 2023
1 parent 46ccded commit 6e43819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entt/entity/storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ class basic_storage<Entity, Entity, Allocator>
*/
template<typename... Func>
void patch([[maybe_unused]] const entity_type entt, Func &&...func) {
ENTT_ASSERT(base_type::contains(entt), "Storage does not contain entity");
ENTT_ASSERT(base_type::index(entt) < base_type::free_list(), "The requested entity is not a live one");
(std::forward<Func>(func)(), ...);
}

Expand Down

0 comments on commit 6e43819

Please sign in to comment.