Browse Source

meta: meta_any::operator* propagates the context now

Michele Caini 3 years ago
parent
commit
c0bb603210
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/meta/meta.hpp

+ 1 - 1
src/entt/meta/meta.hpp

@@ -540,7 +540,7 @@ public:
      * wrapped element is dereferenceable, an invalid meta any otherwise.
      */
     [[nodiscard]] meta_any operator*() const noexcept {
-        meta_any ret{};
+        meta_any ret{meta_ctx_arg, *ctx};
         vtable(operation::deref, storage, &ret);
         return ret;
     }