- [FIX] JA_StopChannel() petava al parar tots els sons.

This commit is contained in:
2026-03-04 10:19:16 +01:00
parent f12e46db1b
commit 33bbf940ea

View File

@@ -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;