From 33bbf940eaeb9c7ab70c8824f78bd8b0091f431d Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Wed, 4 Mar 2026 10:19:16 +0100 Subject: [PATCH] - [FIX] JA_StopChannel() petava al parar tots els sons. --- jail_audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jail_audio.cpp b/jail_audio.cpp index 42f3a56..4f29423 100644 --- a/jail_audio.cpp +++ b/jail_audio.cpp @@ -447,7 +447,7 @@ void JA_StopChannel(const int channel) { for (int i = 0; i < JA_MAX_SIMULTANEOUS_CHANNELS; i++) { if (channels[i].state != JA_CHANNEL_FREE) SDL_DestroyAudioStream(channels[i].stream); - channels[channel].stream = nullptr; + channels[i].stream = nullptr; channels[i].state = JA_CHANNEL_FREE; channels[i].pos = 0; channels[i].sound = NULL;