[*] AuTryRemoveRange bug
This commit is contained in:
parent
b0cd732ac7
commit
cc01be79b3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user