meta: update meta_custom_node for consistency

This commit is contained in:
skypjack
2026-01-19 17:14:17 +01:00
parent 94d05fab2f
commit 72b2c5ac8e
2 changed files with 2 additions and 2 deletions

View File

@@ -756,7 +756,7 @@ struct meta_custom {
*/
template<typename Type>
[[nodiscard]] operator Type *() const noexcept {
return ((node != nullptr) && (type_hash<std::remove_const_t<Type>>::value() == node->type)) ? static_cast<Type *>(node->value.get()) : nullptr;
return ((node != nullptr) && (type_hash<std::remove_const_t<Type>>::value() == node->id)) ? static_cast<Type *>(node->value.get()) : nullptr;
}
/**

View File

@@ -61,7 +61,7 @@ template<typename Type>
struct meta_type_node;
struct meta_custom_node {
id_type type{};
id_type id{};
std::shared_ptr<void> value{};
};