1
0
Michele Caini 3 жил өмнө
parent
commit
cbd6fd8aee

+ 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 {