소스 검색

snapshot: dense_map::contains is a thing fortunately

Michele Caini 2 년 전
부모
커밋
49534eec0d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
     }
 
     /**