summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/includes/segas32.h2
-rw-r--r--src/mame/video/segas32.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mame/includes/segas32.h b/src/mame/includes/segas32.h
index ae4f90b1e68..5b99f191b74 100644
--- a/src/mame/includes/segas32.h
+++ b/src/mame/includes/segas32.h
@@ -210,7 +210,7 @@ protected:
optional_shared_ptr<uint16_t> m_system32_workram;
required_shared_ptr<uint16_t> m_videoram;
required_shared_ptr<uint16_t> m_spriteram;
- required_shared_ptr<uint8_t> m_soundram;
+ optional_shared_ptr<uint8_t> m_soundram;
optional_shared_ptr_array<uint16_t, 2> m_paletteram;
required_device<cpu_device> m_maincpu;
diff --git a/src/mame/video/segas32.cpp b/src/mame/video/segas32.cpp
index a95d43a14cf..9d62e0a6627 100644
--- a/src/mame/video/segas32.cpp
+++ b/src/mame/video/segas32.cpp
@@ -245,7 +245,8 @@ void segas32_state::device_start()
memset(m_mixer_control, 0xff, sizeof(m_mixer_control[0][0]) * 0x80 );
/* needs to be initialized to 0xff, otherwise f1en has bad sound (MT04531) */
- std::fill_n(&m_soundram[0], m_soundram.bytes() / sizeof(m_soundram[0]), 0xff);
+ if (m_soundram)
+ std::fill_n(&m_soundram[0], m_soundram.bytes() / sizeof(m_soundram[0]), 0xff);
}