Parcourir la source

minor changes

Michele Caini il y a 7 ans
Parent
commit
e3cb6a0aec
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/entt/entity/registry.hpp

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

@@ -1148,7 +1148,7 @@ public:
     void each(Func func) const {
     void each(Func func) const {
         if(available) {
         if(available) {
             for(auto pos = entities.size(); pos; --pos) {
             for(auto pos = entities.size(); pos; --pos) {
-                const entity_type curr = static_cast<entity_type>(pos - 1);
+                const auto curr = entity_type(pos - 1);
                 const auto entity = entities[curr];
                 const auto entity = entities[curr];
                 const auto entt = entity & traits_type::entity_mask;
                 const auto entt = entity & traits_type::entity_mask;