diff --git a/src/entt/meta/resolve.hpp b/src/entt/meta/resolve.hpp index 6e7108dcb..3c9664ba4 100644 --- a/src/entt/meta/resolve.hpp +++ b/src/entt/meta/resolve.hpp @@ -85,7 +85,7 @@ template [[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{}; } /**