[*] AuTryRemoveRange bug

This commit is contained in:
Reece Wilson 2022-03-27 21:45:30 +01:00
parent b0cd732ac7
commit cc01be79b3

View File

@ -120,11 +120,10 @@ inline void AuRemoveRange(T &in, AuUInt index, AuUInt length)
}
auto begin = in.begin();
auto end = begin;
std::advance(begin, index);
auto end = begin;
std::advance(end, length);
std::advance(end, index + length);
while (begin != end)
{
@ -145,6 +144,7 @@ inline bool AuTryRemoveRange(T &in, AuUInt index, AuUInt length)
auto begin = in.begin();
auto end = begin;
std::advance(begin, index);
std::advance(end, index + length);
while (begin != end)