diff --git a/alc/alc.cpp b/alc/alc.cpp index 1c510434df..05d8dc55fa 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2315,7 +2315,7 @@ static size_t GetIntegerv(ALCdevice *device, ALCenum param, const al::span values[i++] = static_cast(device->getOutputMode1()); values[i++] = 0; - assert(i == NumAttrsForDevice(device)); + assert(i == NumAttrsForDevice()); return i; } alcSetError(device, ALC_INVALID_VALUE);