Просмотр исходного кода

entity: avoid unnecessary operations

Michele Caini 2 лет назад
Родитель
Сommit
5b2c136a7c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/entity.hpp

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

@@ -124,7 +124,7 @@ public:
      */
     [[nodiscard]] static constexpr value_type next(const value_type value) noexcept {
         const auto vers = to_version(value) + 1;
-        return construct(to_entity(value), static_cast<version_type>(vers + (vers == version_mask)));
+        return construct(to_integral(value), static_cast<version_type>(vers + (vers == version_mask)));
     }
 
     /**