Skip to content

Commit

Permalink
meta: avoid implicit conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Oct 4, 2024
1 parent 02f8f00 commit 1de5b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entt/meta/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class basic_meta_factory {
}

auto *member = find_member<&meta_prop_node::id>(*container, node.id);
member ? (*member = std::move(node)) : container->emplace_back(std::move(node));
(member != nullptr) ? (*member = std::move(node)) : container->emplace_back(std::move(node));
}

void traits(const meta_traits value) {
Expand Down

0 comments on commit 1de5b06

Please sign in to comment.