1
0
Эх сурвалжийг харах

avoid taking the position twice

Michele Caini 7 жил өмнө
parent
commit
e37f84a227

+ 1 - 1
src/entt/entity/group.hpp

@@ -843,7 +843,7 @@ public:
                 const auto pos = cpool->index(curr);
 
                 if(pos != next) {
-                    cpool->swap(next, cpool->index(curr));
+                    cpool->swap(next, pos);
                 }
             }(std::get<pool_type<Other> *>(pools)), ...);
         }