Browse Source

meta: avoid using node in meta_any if not necessary

skypjack 6 months ago
parent
commit
5e99452cf3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entt/meta/meta.hpp

+ 2 - 2
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!= */