diff options
author | Chris Robinson <[email protected]> | 2020-03-28 15:37:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-03-28 18:15:05 -0700 |
commit | f1f9a1417206e6097005c6088b65d56cb4e15429 (patch) | |
tree | 5ca1ad3fc79bfb1789ff0d0d9a28a2cebca845ef /al/auxeffectslot.cpp | |
parent | 504745abec35c4718833cd7c7ed8db3b242e0aa2 (diff) |
Avoid AL[C]boolean for internal use
Diffstat (limited to 'al/auxeffectslot.cpp')
-rw-r--r-- | al/auxeffectslot.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/al/auxeffectslot.cpp b/al/auxeffectslot.cpp index 6a7bbb46..ac9bcd71 100644 --- a/al/auxeffectslot.cpp +++ b/al/auxeffectslot.cpp @@ -394,7 +394,7 @@ START_API_FUNC if(!(value == AL_TRUE || value == AL_FALSE)) SETERR_RETURN(context, AL_INVALID_VALUE,, "Effect slot auxiliary send auto out of range"); - slot->AuxSendAuto = static_cast<ALboolean>(value); + slot->AuxSendAuto = !!value; break; case AL_EFFECTSLOT_TARGET_SOFT: @@ -535,7 +535,7 @@ START_API_FUNC switch(param) { case AL_EFFECTSLOT_AUXILIARY_SEND_AUTO: - *value = slot->AuxSendAuto; + *value = slot->AuxSendAuto ? AL_TRUE : AL_FALSE; break; case AL_EFFECTSLOT_TARGET_SOFT: |