diff --git a/higan/sfc/cpu/joypad.cpp b/higan/sfc/cpu/joypad.cpp index 0d257b03..ae716a10 100644 --- a/higan/sfc/cpu/joypad.cpp +++ b/higan/sfc/cpu/joypad.cpp @@ -1,6 +1,6 @@ //called every 256 clocks; see CPU::addClocks() auto CPU::stepAutoJoypadPoll() -> void { - if(vcounter() >= !ppu.overscan() ? 225 : 240) { + if(vcounter() >= (!ppu.overscan() ? 225 : 240)) { //cache enable state at first iteration if(status.auto_joypad_counter == 0) status.auto_joypad_latch = status.auto_joypad_poll; status.auto_joypad_active = status.auto_joypad_counter <= 15;