From 1ddad3577c4f8e3cd551b1dea95c3f2bbdc7914f Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 11 May 2022 07:47:58 +0200 Subject: [PATCH] registry: minor changes --- src/entt/entity/registry.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index 08c727707..afff90fdf 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -198,7 +198,7 @@ struct registry_context { template [[nodiscard]] bool contains(const id_type id = type_id().hash()) const { const auto it = data.find(id); - return it != data.end() && it->second.type() == type_id(); + return it != data.cend() && it->second.type() == type_id(); } private: