From 49534eec0db5fb27d103d00c3d73696bcf67a299 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 6 Jun 2023 10:14:33 +0200 Subject: [PATCH] snapshot: dense_map::contains is a thing fortunately --- src/entt/entity/snapshot.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/entity/snapshot.hpp b/src/entt/entity/snapshot.hpp index ac18b749e..35253bfd6 100644 --- a/src/entt/entity/snapshot.hpp +++ b/src/entt/entity/snapshot.hpp @@ -585,7 +585,7 @@ public: * @return True if `entity` is managed by the loader, false otherwise. */ [[nodiscard]] bool contains(entity_type entt) const noexcept { - return (remloc.find(entt) != remloc.cend()); + return remloc.contains(entt); } /**