From 5b2c136a7cd8e7fd362490166880cc39aeb53eb5 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 29 Nov 2023 12:59:39 +0100 Subject: [PATCH] entity: avoid unnecessary operations --- src/entt/entity/entity.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/entity/entity.hpp b/src/entt/entity/entity.hpp index a7d518cdd..82a3a73d8 100644 --- a/src/entt/entity/entity.hpp +++ b/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(vers + (vers == version_mask))); + return construct(to_integral(value), static_cast(vers + (vers == version_mask))); } /**