Skip to content

Commit

Permalink
meta: explicit check
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Oct 4, 2024
1 parent 00c2ddb commit 44ee192
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 ? meta_type{ctx, *elem} : meta_type{};
return (elem == nullptr) ? meta_type{ctx, *elem} : meta_type{};
}

/**
Expand Down

0 comments on commit 44ee192

Please sign in to comment.