From 5e99452cf3414a5f2891f80c94f5fcd720646ebe Mon Sep 17 00:00:00 2001 From: skypjack Date: Mon, 1 Sep 2025 18:40:06 +0200 Subject: [PATCH] meta: avoid using node in meta_any if not necessary --- src/entt/meta/meta.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 24bc19450..af80220a5 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -592,12 +592,12 @@ public: * @return False if the wrapper is invalid, true otherwise. */ [[nodiscard]] explicit operator bool() const noexcept { - return !(node.info == nullptr); + return !(vtable == nullptr); } /*! @copydoc any::operator== */ [[nodiscard]] bool operator==(const meta_any &other) const noexcept { - return (ctx == other.ctx) && (node.info == other.node.info) && (storage == other.storage); + return (ctx == other.ctx) && (resolve == other.resolve) && (storage == other.storage); } /*! @copydoc any::operator!= */