瀏覽代碼

minor changes

Michele Caini 8 年之前
父節點
當前提交
e3cb6a0aec
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {
         if(available) {
             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 entt = entity & traits_type::entity_mask;