From 8ca4fcbbf9896ae1afa1ec397d17a6a23081bdc0 Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 30 Mar 2025 12:36:21 +0200 Subject: [PATCH] ioport: fix possible issue where 4way joystick value could be invalid --- src/emu/ioport.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emu/ioport.cpp b/src/emu/ioport.cpp index 33f556e597f..712df85db29 100644 --- a/src/emu/ioport.cpp +++ b/src/emu/ioport.cpp @@ -619,6 +619,8 @@ void digital_joystick::frame_update() m_current4way &= ~(UP_BIT | DOWN_BIT); } } + else + m_current4way &= m_current; }