Fix OpenAL backend crashing when sounds is initially 0 due to my mistakes

This commit is contained in:
UnknownShadow200 2021-08-12 11:54:24 +10:00
parent dc692eefaa
commit a3e81f3f57

View File

@ -255,7 +255,7 @@ cc_result Audio_Play(struct AudioContext* ctx) {
}
static void AudioBackend_Stop(struct AudioContext* ctx) {
if (ctx->source == -1) return;
if (!ctx->source) return;
_alSourceStop(ctx->source);
_alGetError();