aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alu.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index d3d29994..7f1cad0f 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -104,8 +104,7 @@ static __inline ALuint aluFrameSizeFromFormat(ALenum format)
static __inline ALdouble lerp(ALdouble val1, ALdouble val2, ALdouble mu)
{
- val1 += (val2-val1) * mu;
- return val1;
+ return val1 + (val2-val1)*mu;
}
static __inline ALdouble cubic(ALdouble val0, ALdouble val1, ALdouble val2, ALdouble val3, ALdouble mu)
{