aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-06-29 11:22:29 -0700
committerChris Robinson <[email protected]>2019-06-29 11:22:29 -0700
commit6790a9b44fd79f430b683cbd7761d174c530b82e (patch)
treef447c02c6ac94d715266e7b42018f1802c43f8dc /Alc
parent12911cc533a94c6aa99c0db57394b75d3fcb3f67 (diff)
Use a bool for the TrapALError flag
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index 23cc4826..3a083048 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -1037,15 +1037,15 @@ static void alc_initconfig(void)
str = getenv("ALSOFT_TRAP_ERROR");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, nullptr, 0) == 1))
{
- TrapALError = AL_TRUE;
+ TrapALError = true;
TrapALCError = true;
}
else
{
str = getenv("ALSOFT_TRAP_AL_ERROR");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, nullptr, 0) == 1))
- TrapALError = AL_TRUE;
- TrapALError = GetConfigValueBool(nullptr, nullptr, "trap-al-error", TrapALError);
+ TrapALError = true;
+ TrapALError = !!GetConfigValueBool(nullptr, nullptr, "trap-al-error", TrapALError);
str = getenv("ALSOFT_TRAP_ALC_ERROR");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, nullptr, 0) == 1))