audio: Fixed incorrect assertion

This commit is contained in:
Ryan C. Gordon committed 2023-07-30 11:56:35 -04:00
1 parent 77b3fb06ee
commit be0dc630b7
1 file changed
+1 -1
+1 -1
View File
@@ -1019,7 +1019,7 @@ SDL_AudioDevice *SDL_FindPhysicalAudioDeviceByCallback(SDL_bool (*callback)(SDL_
SDL_SetError("Device not found");
}
SDL_assert(!SDL_AtomicGet(&dev->condemned)); // shouldn't be in the list if pending deletion.
SDL_assert(!dev || !SDL_AtomicGet(&dev->condemned)); // shouldn't be in the list if pending deletion.
return dev;
}