From d2f03a30516d277dd08fdea07e73401ff5a98c3d Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Sat, 2 Nov 2024 00:03:07 +0100 Subject: [PATCH] meta: avoid init meta ctx for meta iterators --- 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 7d0459b55..48b678b8a 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -1652,7 +1652,7 @@ public: } private: - const meta_ctx *ctx{&locator::value_or()}; + const meta_ctx *ctx{}; vtable_type *vtable{}; any handle{}; }; @@ -1724,7 +1724,7 @@ public: } private: - const meta_ctx *ctx{&locator::value_or()}; + const meta_ctx *ctx{}; vtable_type *vtable{}; any handle{}; };