From 2c9aa2f544c8419cdaa49d74503b7a8ccdefc895 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 1 Aug 2024 09:25:49 +0200 Subject: [PATCH] meta: minor changes for coding style --- src/entt/meta/factory.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entt/meta/factory.hpp b/src/entt/meta/factory.hpp index 88d04f60e..1732d25a8 100644 --- a/src/entt/meta/factory.hpp +++ b/src/entt/meta/factory.hpp @@ -96,12 +96,12 @@ class basic_meta_factory { curr = curr->next.get(); } - if(curr->invoke != node.invoke) { + if(curr->invoke == node.invoke) { + invoke = curr->invoke; + } else { invoke = node.invoke; curr->next = std::make_shared(); *curr->next = std::move(node); - } else { - invoke = curr->invoke; } bucket = id;