summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-04-16 13:37:51 -0400
committer AJR <ajrhacker@users.noreply.github.com>2021-04-16 13:37:51 -0400
commit0c9791b00f31181d153062c9c430a27ccd0334cf (patch)
treee580cd5ccb851ac0a84c69ccdd1309ef9eddb65b
parentf627dff3ad39daa6fb4bedaae4806fd0f7df0831 (diff)
applix: Fix crash in debug build
-rw-r--r--src/mame/drivers/applix.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mame/drivers/applix.cpp b/src/mame/drivers/applix.cpp
index 2996a3fcc92..4002406aa4c 100644
--- a/src/mame/drivers/applix.cpp
+++ b/src/mame/drivers/applix.cpp
@@ -787,6 +787,8 @@ void applix_state::applix_palette(palette_device &palette) const
void applix_state::machine_start()
{
+ std::fill(std::begin(m_palette_latch), std::end(m_palette_latch), 0);
+
save_item(NAME(m_video_latch));
save_item(NAME(m_pa));
save_item(NAME(m_palette_latch));