소스 검색

view: minor changes

Michele Caini 3 년 전
부모
커밋
cbd6fd8aee
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/entt/entity/view.hpp

+ 1 - 3
src/entt/entity/view.hpp

@@ -53,9 +53,7 @@ public:
           last{to},
           last{to},
           pools{all_of},
           pools{all_of},
           filter{none_of} {
           filter{none_of} {
-        if(it != last && !valid()) {
-            ++(*this);
-        }
+        while(it != last && !valid()) { ++it; }
     }
     }
 
 
     view_iterator &operator++() noexcept {
     view_iterator &operator++() noexcept {