aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-12 01:25:33 -0800
committerChris Robinson <[email protected]>2019-01-12 01:25:33 -0800
commitd64eaba3229f48a519586c0436235e3c2809329b (patch)
treed578ef76627df78c0ec7b1ef2bca1fd1e8af0db1 /Alc/alu.cpp
parentab1667146627e93688cfeb4cf877764f220c0c3e (diff)
Use a flexible array for DirectHrtfState and ALvoice
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index 55e4e5c7..b3ca26cb 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -592,7 +592,7 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat Azi, const ALfloat Elev
);
const ALsizei NumSends{Device->NumAuxSends};
ASSUME(NumSends >= 0);
- std::for_each(voice->Send+0, voice->Send+NumSends,
+ std::for_each(voice->Send.begin(), voice->Send.end(),
[num_channels](ALvoice::SendData &send) -> void
{
std::for_each(std::begin(send.Params), std::begin(send.Params)+num_channels,