diff options
author | Chris Robinson <[email protected]> | 2018-11-18 03:39:32 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-18 03:39:32 -0800 |
commit | 7433cb5f4cb0515dd6e314978f579ae91e2c63c4 (patch) | |
tree | 1a2e51d6e819cabcd51ac24fafe345a47a469667 /Alc/alu.cpp | |
parent | bf30eb0391b84e81353139354d2ec665942847f1 (diff) |
Avoid naming a struct member the same as an enum type
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r-- | Alc/alu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp index 91d9e758..92aa2bc4 100644 --- a/Alc/alu.cpp +++ b/Alc/alu.cpp @@ -328,7 +328,7 @@ static bool CalcContextParams(ALCcontext *Context) Listener.Params.MetersPerUnit; Listener.Params.SourceDistanceModel = props->SourceDistanceModel; - Listener.Params.DistanceModel = props->DistanceModel; + Listener.Params.mDistanceModel = props->mDistanceModel; ATOMIC_REPLACE_HEAD(struct ALcontextProps*, &Context->FreeContextProps, props); return true; @@ -1210,7 +1210,7 @@ static void CalcAttnSourceParams(ALvoice *voice, const struct ALvoiceProps *prop ClampedDist = Distance; switch(Listener.Params.SourceDistanceModel ? - props->DistanceModel : Listener.Params.DistanceModel) + props->mDistanceModel : Listener.Params.mDistanceModel) { case DistanceModel::InverseClamped: ClampedDist = clampf(ClampedDist, props->RefDistance, props->MaxDistance); |