diff --git a/src/mame/audio/wpcsnd.cpp b/src/mame/audio/wpcsnd.cpp index 3852ffd55e2..d8fee1b5138 100644 --- a/src/mame/audio/wpcsnd.cpp +++ b/src/mame/audio/wpcsnd.cpp @@ -121,6 +121,10 @@ void wpcsnd_device::device_start() { // resolve callback m_reply_cb.resolve_safe(); + // save states + save_item(NAME(m_latch)); + save_item(NAME(m_reply)); + save_item(NAME(m_reply_available)); } void wpcsnd_device::device_reset() diff --git a/src/mame/audio/wpcsnd.h b/src/mame/audio/wpcsnd.h index 7d42ae4fef9..8ca0bd55a25 100644 --- a/src/mame/audio/wpcsnd.h +++ b/src/mame/audio/wpcsnd.h @@ -47,8 +47,8 @@ protected: virtual void device_add_mconfig(machine_config &config) override; private: - uint8_t m_latch; - uint8_t m_reply; + uint8_t m_latch = 0; + uint8_t m_reply = 0; bool m_reply_available; // callback