diff --git a/src/entt/process/scheduler.hpp b/src/entt/process/scheduler.hpp index ebd2ea83a..77a88c2e8 100644 --- a/src/entt/process/scheduler.hpp +++ b/src/entt/process/scheduler.hpp @@ -123,7 +123,7 @@ public: */ basic_scheduler(basic_scheduler &&other, const allocator_type &allocator) noexcept : handlers{container_type{std::move(other.handlers.first()), allocator}, allocator} { - ENTT_ASSERT(alloc_traits::is_always_equal::value || handlers.second() == other.handlers.second(), "Copying a scheduler is not allowed"); + ENTT_ASSERT(alloc_traits::is_always_equal::value || get_allocator() == other.get_allocator(), "Copying a scheduler is not allowed"); } /** @@ -132,7 +132,7 @@ public: * @return This scheduler. */ basic_scheduler &operator=(basic_scheduler &&other) noexcept { - ENTT_ASSERT(alloc_traits::is_always_equal::value || handlers.second() == other.handlers.second(), "Copying a scheduler is not allowed"); + ENTT_ASSERT(alloc_traits::is_always_equal::value || get_allocator() == other.get_allocator(), "Copying a scheduler is not allowed"); handlers = std::move(other.handlers); return *this; }