From 72b2c5ac8ebf006e244f9aca84c2f1b897abbd6c Mon Sep 17 00:00:00 2001 From: skypjack Date: Mon, 19 Jan 2026 17:14:17 +0100 Subject: [PATCH] meta: update meta_custom_node for consistency --- src/entt/meta/meta.hpp | 2 +- src/entt/meta/node.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index 46d30847a..1856b79d9 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -756,7 +756,7 @@ struct meta_custom { */ template [[nodiscard]] operator Type *() const noexcept { - return ((node != nullptr) && (type_hash>::value() == node->type)) ? static_cast(node->value.get()) : nullptr; + return ((node != nullptr) && (type_hash>::value() == node->id)) ? static_cast(node->value.get()) : nullptr; } /** diff --git a/src/entt/meta/node.hpp b/src/entt/meta/node.hpp index 6308d9d7e..bc8359232 100644 --- a/src/entt/meta/node.hpp +++ b/src/entt/meta/node.hpp @@ -61,7 +61,7 @@ template struct meta_type_node; struct meta_custom_node { - id_type type{}; + id_type id{}; std::shared_ptr value{}; };