Skip to content

Commit

Permalink
meta: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jun 30, 2023
1 parent 0472949 commit 947c6e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/entt/meta/meta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1851,8 +1851,7 @@ class meta_associative_container::meta_iterator final {
* @return True in case of success, false otherwise.
*/
inline bool meta_sequence_container::resize(const size_type sz) {
void *elem = storage.data();
return elem && resize_fn(elem, sz);
return (storage.policy() != any_policy::cref) && resize_fn(storage.data(), sz);
}

/**
Expand Down

0 comments on commit 947c6e7

Please sign in to comment.