From f689a801854da2eb7efd5ae09d7251075de781cb Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 30 Oct 2024 17:37:10 +0100 Subject: [PATCH] Fix build with old libstdc++ --- .../game/Entities/Object/Updates/WowCSEntityDefinitions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Entities/Object/Updates/WowCSEntityDefinitions.cpp b/src/server/game/Entities/Object/Updates/WowCSEntityDefinitions.cpp index 91c1ab39de36f..928fc525c7049 100644 --- a/src/server/game/Entities/Object/Updates/WowCSEntityDefinitions.cpp +++ b/src/server/game/Entities/Object/Updates/WowCSEntityDefinitions.cpp @@ -30,7 +30,7 @@ void EntityFragmentsHolder::Add(EntityFragment fragment, bool update) auto where = std::ranges::lower_bound(arr.begin(), arr.begin() + count, f); if (*where == f) return std::pair(where, false); - std::ranges::rotate(where, arr.begin() + count, arr.begin() + count + 1); + std::rotate(where, arr.begin() + count, arr.begin() + count + 1); ++count; *where = f; return std::pair(where, true); @@ -68,7 +68,7 @@ void EntityFragmentsHolder::Remove(EntityFragment fragment) if (where != arr.end()) { *where = EntityFragment::End; - std::ranges::rotate(where, where + 1, arr.begin() + count); + std::rotate(where, where + 1, arr.begin() + count); --count; return std::pair(where, true); }