aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-31 19:09:21 -0700
committerChris Robinson <[email protected]>2019-03-31 19:09:21 -0700
commit423333c59455a7cc2ca3cee49e8a4643bc0298c5 (patch)
tree9ed1188345fae913fa753879438e3ccb0e52fa0e
parentc88b09170cd5cebf7c64b283fa8dbec4d2f6d29e (diff)
Fix use of reverse_copy
-rw-r--r--Alc/alu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index 4492b1f3..d26597df 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -1513,7 +1513,7 @@ void ApplyStablizer(FrontStablizer *Stablizer, ALfloat (*RESTRICT Buffer)[BUFFER
*/
auto tmpbuf_end = std::begin(tmpbuf) + SamplesToDo;
std::copy_n(std::begin(DelayBuf), FrontStablizer::DelayLength, tmpbuf_end);
- std::reverse_copy(Buffer, Buffer+SamplesToDo, tmpbuf_end);
+ std::reverse_copy(Buffer, Buffer+SamplesToDo, std::begin(tmpbuf));
std::copy_n(std::begin(tmpbuf), FrontStablizer::DelayLength, std::begin(DelayBuf));
/* Apply an all-pass on the reversed signal, then reverse the samples