Sfoglia il codice sorgente

snapshot: dense_map::contains is a thing fortunately

Michele Caini 2 anni fa
parent
commit
49534eec0d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/entt/entity/snapshot.hpp

+ 1 - 1
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);
     }
 
     /**