mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
Fix OpenAL backend crashing when sounds is initially 0 due to my mistakes
This commit is contained in:
parent
dc692eefaa
commit
a3e81f3f57
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user