From 49a52140b06afb2fdf05062706ba2ce1aff9cf0b Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 2 Sep 2019 16:34:38 +0200 Subject: [PATCH] minor changes --- src/entt/entity/group.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/entt/entity/group.hpp b/src/entt/entity/group.hpp index 3fccc6973..e3d061724 100644 --- a/src/entt/entity/group.hpp +++ b/src/entt/entity/group.hpp @@ -840,9 +840,7 @@ public: for(auto next = *length; next; --next) { ([next = next-1, curr = cpool->data()[next-1]](auto *cpool) { - const auto pos = cpool->index(curr); - - if(pos != next) { + if(const auto pos = cpool->index(curr); pos != next) { cpool->swap(next, pos); } }(std::get *>(pools)), ...);