Skip to content

Commit

Permalink
meta: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Oct 4, 2024
1 parent 1de5b06 commit 8cfd635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entt/meta/resolve.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ template<typename Type>
[[nodiscard]] inline meta_type resolve(const meta_ctx &ctx, const type_info &info) noexcept {
auto &&context = internal::meta_context::from(ctx);
const auto *elem = internal::try_resolve(context, info);
return (elem == nullptr) ? meta_type{ctx, *elem} : meta_type{};
return (elem != nullptr) ? meta_type{ctx, *elem} : meta_type{};
}

/**
Expand Down

0 comments on commit 8cfd635

Please sign in to comment.