diff options
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1782,8 +1782,8 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) if(device->Type != Loopback) { - int nohrtf = !(device->Flags&DEVICE_HRTF_REQUEST); - if(GetConfigValueBool(NULL, "hrtf", !nohrtf)) + bool usehrtf = !!(device->Flags&DEVICE_HRTF_REQUEST); + if(GetConfigValueBool(NULL, "hrtf", usehrtf)) device->Flags |= DEVICE_HRTF_REQUEST; else device->Flags &= ~DEVICE_HRTF_REQUEST; |