From b27bd4eed7e569d0f534ddb3a6f4cf689a0593a9 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 4 Sep 2021 18:15:22 +0300 Subject: [PATCH] Remove redundant condition --- Core/apu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/apu.c b/Core/apu.c index 845b6cc..6e0e1ee 100644 --- a/Core/apu.c +++ b/Core/apu.c @@ -1175,8 +1175,7 @@ void GB_apu_write(GB_gameboy_t *gb, uint8_t reg, uint8_t value) reads from it. */ if (!GB_is_cgb(gb) && gb->apu.is_active[GB_WAVE] && - gb->apu.wave_channel.sample_countdown == 0 && - gb->apu.wave_channel.enable) { + gb->apu.wave_channel.sample_countdown == 0) { unsigned offset = ((gb->apu.wave_channel.current_sample_index + 1) >> 1) & 0xF; /* This glitch varies between models and even specific instances: