Explorar o código

view: minor changes

Michele Caini %!s(int64=4) %!d(string=hai) anos
pai
achega
cbd6fd8aee
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/entt/entity/view.hpp

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

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