mirror of
https://github.com/holub/mame
synced 2025-04-16 13:34:55 +03:00
apple2.cpp,apple2e.cpp: fix uninitialized class members causing joystick weirdness. [R. Belmont]
This commit is contained in:
parent
1ac72397bb
commit
aadf8cb09f
@ -299,6 +299,8 @@ void apple2_state::machine_start()
|
||||
m_ram_ptr[adr+1] = 0xff;
|
||||
}
|
||||
|
||||
m_joystick_x1_time = m_joystick_x2_time = m_joystick_y1_time = m_joystick_y2_time = 0;
|
||||
|
||||
// setup save states
|
||||
save_item(NAME(m_speaker_state));
|
||||
save_item(NAME(m_cassette_state));
|
||||
|
@ -1060,6 +1060,7 @@ void apple2e_state::machine_start()
|
||||
m_next_strobe = 1U;
|
||||
}
|
||||
|
||||
m_joystick_x1_time = m_joystick_x2_time = m_joystick_y1_time = m_joystick_y2_time = 0;
|
||||
|
||||
// setup save states
|
||||
save_item(NAME(m_speaker_state));
|
||||
|
Loading…
Reference in New Issue
Block a user